-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Spiderfied icons showing on top of clustered icons when zooming out to default zoom level. #268
Comments
zoomanim doesn't seem to get called when using the default zoom button. |
Thanks for the report, fixed! |
Thank you for the extremely quick fix! :D However, this causes another issue. |
clicking a point should either spider or zoom by default, not both. Is this what is happening or something else? |
I fixed this by adding one line at the bottom of the L.MarkerCluster._noanimationUnspiderfy function: I don't know if this is the right approach. I think the second issue mentioned here existed all along and was not caused by the fix, just revealed by it. Steps to reproduce:
Observed: Step 4 does nothing It looks like the code thought it was already spiderfied because _group._spiderfied never got reset in step 2 |
Thanks, will take a look at this shortly, what you've done sounds about right. |
Okay fixed now :) |
Using a custom icon for individual/spiderfied points.
Implemented a DefaultZoom control (clicking on the control resets the location and zoom level to a default setting.
Code of Default Zoom:
Zoom into a location where multiple points are

Press DefaultZoom. The spidered icons seem to stack onto each other and on top of the clustered icon.

When zooming out with the standard zoom out button, the unspiderfy events get fired. As far as I can tell, the same events are getting fired for the default zoom but the unspiderfy events don't get called.
The text was updated successfully, but these errors were encountered: