Closed oradyvan closed 6 years ago
My apologies on publishing this PR too early - the problem seems to be of the totally different nature. My changes are breaking animations of collapsing multiple clusters into one, so I am closing this PR. I have another idea on how to access currently visible clusters, I will publish another PR as an improvement.
https://github.com/hulab/ClusterKit/issues/43
Remove old clusters from the map before the animation of collapsing clusters is completed.
In my project, I was also experiencing a duplication of annotations in clusters, as I was picking up the new clusters in the method
-mapView:regionDidChangeAnimated:
like this:It seems there was a subtle difference in 2 counterpart methods of
CKClusterManager
:as one method was removing
oldClusters
BEFORE the animations were finished and the other method was removing those AFTER the animations were finished.