makinacorpus / Leaflet.MeasureControl

Leaflet control to mesure distances on the map
https://makinacorpus.github.io/Leaflet.MeasureControl
BSD 3-Clause "New" or "Revised" License
82 stars 48 forks source link

JS errors with multiple map instances #4

Open danimt opened 11 years ago

danimt commented 11 years ago

When having two Leaflet instances (side-by-side) with the measure control added to each they will throw javascript errors.

Example: 1 - Click to start measuring 2 - Add some points 3 - Click on the other map instance

leplatrem commented 11 years ago

Good catch thanks !

Can you open another dedicated issue for the second problem please ?