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 never turn into pins #38

Open edumucelli opened 8 years ago

edumucelli commented 8 years ago

Regardless the amount of zoom I apply on the map, the clusters never "explode" into pins. I am using the latest version of FBAnnotationClusteringSwift, and my code pretty much looks like what is in example code.

However, the images bellow show the progression of the clusters as I zoom in on the map, reaching the maximum zoom actually increased the size of the cluster inside the visible region:

What is likely to be this problem? Where I should look into my code to narrow down this problem. For information, I am using the Xcode Simulator to run the app.

Thank you for any suggestion or comment on that.

1 2 3 4 5 6 7 8 9

ardevd commented 8 years ago

Same issue here.

AihamAbusaleh commented 8 years ago

i changed the value of the variable maxZoomLevel = 1.0 in the class FBClusteringManager to 0.001 and it is work for me, hope it helps

edumucelli commented 8 years ago

@Zyg0te @HTWG-AIN I have solved this problem by using the refactored version of this library proposed at #37. That also fixed other problems I was having on the viewForAnnotation method.