Crazy idea - has anyone done anything similar?

60 views
Skip to first unread message

Graham Jessiman

unread,
Nov 25, 2015, 9:52:46 AM11/25/15
to Leaflet
I have a web page which displays a number of leaflet maps in IFRAMES.

I would like to implement a system whereby panning and/or zooming on one map is reflected across all maps. (ie. have the raised event save the information back to the parent page which then forces the update on the other maps)

Is this even possible?

ghybs

unread,
Nov 25, 2015, 12:40:14 PM11/25/15
to Leaflet
Hi,

Not sure if it would be easy given that your maps are each in a different iframe.
Otherwise it is very do-able.

See for example:
To implement it, you could use Leaflet.Sync plugin:
https://github.com/turban/Leaflet.Sync

Hope this helps.
Reply all
Reply to author
Forward
0 new messages