Place image over map

Are you having problems with using or developing a plugin? Let me know here.
Pidea
Posts: 12
Joined: Wed Apr 29, 2015 5:27 pm
Contact:

Re: Place image over map

Post by Pidea » Mon Jan 11, 2016 12:47 pm

I'm a little confused - when setting up Custom Content it points to the index.html file. Should this not be desktop.html or mobile.html ?

I'd like to have different content depending on the device that the user is using to view my site. In this case, a narrow but taller div for mobile devices and a wider but shorter one for desktop.

Phil

agw
Posts: 2247
Joined: Fri Feb 17, 2012 3:20 am

Re: Place image over map

Post by agw » Sat Jan 16, 2016 2:39 pm

Yes, index.html is just a placeholder. Either change that to whichever page you want the content injected into or use * to have it injected into every HTML file.

crazyrider22
Posts: 7
Joined: Wed Jun 12, 2019 7:00 pm

Re: Place image over map

Post by crazyrider22 » Wed Aug 14, 2019 6:14 pm

Sorry to bump on old topic...but is this possible to do with Leafletjs if so...how?

Scott
Live Radar from around the world https://www.ea-radar.co.uk

agw
Posts: 2247
Joined: Fri Feb 17, 2012 3:20 am

Re: Place image over map

Post by agw » Fri Aug 16, 2019 12:58 am

Yes, you can actually write a script that works with both Google Maps and Leaflet. I've uploaded an example to Github here:

https://github.com/vradarserver/vrs-cus ... 20to%20Map

crazyrider22
Posts: 7
Joined: Wed Jun 12, 2019 7:00 pm

Re: Place image over map

Post by crazyrider22 » Fri Aug 16, 2019 4:05 pm

Works a charm! Thanks mate!
Live Radar from around the world https://www.ea-radar.co.uk

Post Reply