jawj / OverlappingMarkerSpiderfier-Leaflet

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

Fixed to maintain markers zIndex #23

Open MuellerMatthew opened 8 years ago

MuellerMatthew commented 8 years ago

Fixed a minor bug where the markers original zIndex was being changed when a marker was spiderfied/unspiderfied. Now instead of setting the zIndexOffset to 1000000, it is taking the existing zIndexOffset and adding/subtracting 1000000 to it when it spiderfies.