Open r1de opened 3 years ago
You might want to try combining with clustering, then? But I don't know what clustering libraries are available for Leaflet.
That might do it. I will have to try that and see if it does what I want. Thanks for the reply!
Ended up using a fork of this code which allows for a simple spiderfy.enable()
and spiderfy.disable()
.
https://github.com/robertleeplummerjr/OverlappingMarkerSpiderfier-Leaflet
I can now enable or disable the spidering effect based on zoom level.
Exactly the behavior I was after!
It seems like a long shot, but the PR(s) from that fork to this one should be accepted ASAP!
It makes this library much more useful than it already is! :smile:
@r1de cans you please share the fork U use?
@fusilon94 It is the link in my comment above yours... https://github.com/robertleeplummerjr/OverlappingMarkerSpiderfier-Leaflet
any way to easily have the spiderfy only active if the map zoom level is greater than X?
I only need the spiderfying on high zoom levels.
I am trying to avoid this behavior: