jawj / OverlappingMarkerSpiderfier-Leaflet

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

Support for real distance on nearbyDistance function #54

Open yvomenezes opened 1 year ago

yvomenezes commented 1 year ago

The nearbyDistance function currently takes into consideration only the pixel distance between the markers. Would it be possible to add support for real distance?

jawj commented 1 year ago

I'm not sure this is really in scope for this library. nearbyDistance specifies the pixel radius within which other markers will be spiderfied. It's in pixels, not metres, because it's about how close together the markers are on the map at the current zoom level, not in real life.