6

I am looking for an example where there would be multiple map divs containing leaflet maps. When one is panned I want the other one to pan or zoom with it so they are always in sync.

11

Here's a blog post that shows how to sync two leaflet maps:

Creating a synchronized view of two maps or images with Leaflet

Then, as per a question in the comments, a plugin that shows how to sync more than 2 leaflet maps:

turban/Leaflet.Sync

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.