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

How to increase/decrease the distance for a cluster merge #41

Open SeanMurphy15 opened 8 years ago

SeanMurphy15 commented 8 years ago

How do I specify the distance needed for annotations to merge into a cluster? For example, I have an annotation in Chicago and a cluster annotation of two in Texas. When I zoom out completely, they both merge and create a cluster of three over Texas. However, I don't want annotations at that distance to merge. Any Ideas?

AihamAbusaleh commented 8 years ago

change the value of the variable maxZoomLevel in the class FBClusteringManager

SeanMurphy15 commented 8 years ago

@HTWG-AIN Thanks man!

bryan1anderson commented 7 years ago

@HTWG-AIN With the current version I don't see a maxZoomLevel property in FBClusteringManager. Does this still apply?