-
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 color while being clustered #561
Comments
… parent clusters in real-time. For issues Leaflet#561, Leaflet#555, Leaflet#535 and Leaflet#498.
How are you changing the color of the icon? |
we used direct DOM html change of each icon and I think maybe this is the issue. |
You are on to it. If you change the icon instead - use setHTML or setClass on the icon (I think they are methods?) then everything should work correctly. |
In my project, color of icon is changing dynamically.
And we have such bug -
Icon is yellow, we zoom out, icons are clustered.
Icon that was yellow becomes red
But when we zoom in, it still becomes yellow.
So cluster somehow remember "old marker icon" state and shows it instead of new
Color is actually background color of html (icon is htmldiv).
So basically, icon keeps old html
The text was updated successfully, but these errors were encountered: