-
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
Icon disappearance when moving out of the viewport #555
Comments
Note: my problem is also present when the marker is inside the viewport but the zoom level has changed. I've already found a workaround by listening to the |
Hi, Please have you tried to set the CSS class when initializing your Marker Cluster Group, as described here? https://github.com/Leaflet/Leaflet.markercluster#customising-the-clustered-markers Along As you figured out, there is actually one Cluster per zoom level, even if they appear identical. Clusters icon are also re-drawn every time they appear back on the viewport. They use the instructions passed at initialization time, but if you fiddle with it later on (change Hopefully this option can cover your usage. |
Yeah, sounds like you should be using |
Ok, I customized my |
Here is my complete use case :
|
Hi again,
Would the code I give in issue #563 fit your need?
Hope this helps.
|
… parent clusters in real-time. For issues Leaflet#561, Leaflet#555, Leaflet#535 and Leaflet#498.
#564 has been merged |
If I'm not mistaken, icons markers managed by
markercluster
disappear when they are at some distance from the viewport.I need to nanually add a class to some of the icons displayed on the map, either they are inside the viewport or not. I currently have two problems regarding this situation :
If there's a kind of event I can listen to when a marker is restored on the map, it should be enough for me to get around the problem.
The text was updated successfully, but these errors were encountered: