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 »

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: 2250
Joined: Fri Feb 17, 2012 3:20 am

Re: Place image over map

Post by agw »

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 »

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: 2250
Joined: Fri Feb 17, 2012 3:20 am

Re: Place image over map

Post by agw »

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 »

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