-
Notifications
You must be signed in to change notification settings - Fork 88
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
Clusters blinking on updating its markers #864
Comments
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.@aneela1191 Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
I'm having the same issue, is there some workaround to fix it? |
Been banging my head on this issue for a good while now .. seems like this PR solves it: #802 Unfortunately it is still not being merged :/ |
Can this be merged? |
Unfortunately not, mainly because there is no Contributor License Agreement for the contribution, but also because it doesn't fix the issue and instead just patches a symptom. I'm going to spend some time on this project soon, so I'll have a look into the root-cause. |
That's great thanks a lot! I use this package for clustering hundreds of vehicles on a map, which change positions dynamically constantly. There seems to be another issue with getting the cluster to be smoothly re-calculated, say I have 100 vehicles as markers in the cluster, when new location information comes in over websockets, I find the associated marker in the MarkerClusterer.markers and set the position, this works great but then I can't get the clusters to be correctly re-drawed if they need to be. I can get them to redraw by clearing all of the markers and re-creating the clusterer however this has a laggy blink effect as described in this issue. I have tried called .render() on the clusterer but it seems to render from the non-updated location, changing .location in the MarkerClusterer.markers does not seem to affect the render. I have opted to recluster every 5 minutes. |
Steps to reproduce
Code example
https://jsfiddle.net/qwe3d1Lm/1/
The text was updated successfully, but these errors were encountered: