ribl / FBAnnotationClusteringSwift

Swift translation of FB Annotation Clustering, which clusters pins on the map for iOS.
http://ribl.co/blog/2015/05/28/map-clustering-with-swift-how-we-implemented-it-into-the-ribl-ios-app/
MIT License
311 stars 109 forks source link

Clusters Refresh rate #16

Closed uknowmeright closed 8 years ago

uknowmeright commented 8 years ago

Whenever I zoom in or out the Clusters recalculate where they should be but there is major flashing going on while they do this. All the annotations flash on and off the screen. This would be a really bad experience for the users. Do you have any suggestions on how to fix this? Thanks!

chenr2 commented 8 years ago

@uknowmeright Yeah, it would be awesome if the zoom transitions were animated, much like a collectionView.reloadSections(). Maybe have a larger cluster, say of size 65 go through mitosis and turn into two smaller clusters of 29 and 36. This does sound like a heavy lift, so I probably won't get to this anytime soon. (If this is urgent, you can contact ThornTech and we can work something out.)

One workaround might be to animate the addAnnotations and removeAnnotations so they don't all happen at once. Zillow does something like this, so it looks like red dots appear on the map like the measles.

zillow