jieter / Leaflet.Sync

Synchronized view of two maps.
http://jieter.github.io/Leaflet.Sync/examples/dual.html
BSD 3-Clause "New" or "Revised" License
235 stars 53 forks source link

Added isSynced method to see if any of our maps is synced with something #24

Closed dijam closed 8 years ago

dijam commented 8 years ago

Hi, During my work with your plugin, I felt a need to a method to check if my map object is synced with anything. Specially when the whole map is loaded dynamically and we remove and add stuff to it on fly. I thought to share the change I made for that project with you and if you were interested, add it to your code base. What do you think?

jieter commented 8 years ago

Hmm, CI seems to be broken.

dijam commented 8 years ago

Yeah, It says: " This job ran on our legacy infrastructure. Please read our docs on how to upgrade." Is it something you need to take care of? https://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade

jieter commented 8 years ago

seems to be something about phantomjs's peer dependencies. Will fix that later. Thanks for the patch!