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

Bug where clusters are leftover from a previous update #55

Open
ivanmkc opened this issue Sep 24, 2018 · 2 comments
Open

Bug where clusters are leftover from a previous update #55

ivanmkc opened this issue Sep 24, 2018 · 2 comments

Comments

@ivanmkc
Copy link

ivanmkc commented Sep 24, 2018

I'm using ClusterKit for Mapbox, it's working decently so far, however there is a serious problem.

When zoomed in, my clusters expand to individual pins. Sometimes these remain even when zoomed out.

My hypothesis is that when you call self.mapView.clusterManager.addAnnotations (for example, from a network call) while an existing clustering update is happening, it ends up plotting both of them.

@aramsargsyan
Copy link

Any updates on this @ivanmkc? I am having the same problem and I have implemented a workaround: Each time removeAnnotations is called, I am iterating through the annotations, finding the duplicate ones and deleting them. This works, but is very performance-heavy.

@ivanmkc
Copy link
Author

ivanmkc commented Oct 18, 2020

Sorry I haven't touched this project for a while. i imagine the 'correct' fix is a solution to the race condition I mentioned using a serial scheduler of some sort.

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

2 participants