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

is there a way to increase the size that dictates weather to cluster or leave as a annotation? #33

Closed blaineam closed 8 years ago

blaineam commented 8 years ago

I'd like to make the cluster have a wider reach so that if say I have a bunch of images on a map at a particular size say 50 CGPoints square I'd like them to group into clusters as opposed to overlapping. currently they overlap for that big of an annotation.

Thanks again

blaineam commented 8 years ago

I changed the maxZoomLevel in FBClusteringManager.swift to 22 instead of 19 and changed the FBCellSizeForZoomLevel switch(zoomLevel) case 18 ..< Int.Max to return 32 instead of 18 and it seems to handle the clustering a lot better now.