jawj / OverlappingMarkerSpiderfier-Leaflet

Deals with overlapping markers in the Leaflet maps API, Google Earth-style
253 stars 68 forks source link

Spider legs remaining when layer switched off #11

Open Greigrm opened 10 years ago

Greigrm commented 10 years ago

Great plugin which has been a huge help, so firstly thanks!

I found what I think is a small bug. If I create the spiderfier using:

new OverlappingMarkerSpiderfier(map,{keepSpiderfied: true});

Now click on a group to "spiderfy". Now from the layer control, switch off the layer while the group is still spidered - the markers are removed but he "legs" remain.