jawj / OverlappingMarkerSpiderfier-Leaflet

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

different counts of nonNearbyMarkers between spiderify and unspiderify events. #33

Open MuellerMatthew opened 8 years ago

MuellerMatthew commented 8 years ago

When the spiderify function generates the list of nonNearbyMarkers which are passed to the spiderify event listeners, it skips any markers that are not on the map, but when the unspiderify function generates the same list of nonNearbyMarkers it includes all markers regardless of whether they are on the map.