Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about zoom level #52

Open
r1de opened this issue Sep 30, 2020 · 5 comments
Open

question about zoom level #52

r1de opened this issue Sep 30, 2020 · 5 comments

Comments

@r1de
Copy link

r1de commented Sep 30, 2020

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:
4th of July

@jawj
Copy link
Owner

jawj commented Sep 30, 2020

You might want to try combining with clustering, then? But I don't know what clustering libraries are available for Leaflet.

@r1de
Copy link
Author

r1de commented Oct 14, 2020

That might do it. I will have to try that and see if it does what I want.
Thanks for the reply!

@r1de
Copy link
Author

r1de commented Nov 2, 2020

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! 😄

@fusilon94
Copy link

@r1de cans you please share the fork U use?

@r1de
Copy link
Author

r1de commented Jun 12, 2022

@fusilon94 It is the link in my comment above yours...
https://github.com/robertleeplummerjr/OverlappingMarkerSpiderfier-Leaflet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants