efremidze / Cluster

Easy Map Annotation Clustering 📍
MIT License
1.28k stars 121 forks source link

unclustering not working for some very close points #82

Closed DavidTomic closed 5 years ago

DavidTomic commented 6 years ago

unclustering not working for some very close points

e.g. for minCountForClustering = 3 this points won't uncluster:

CLLocationCoordinate2D(latitude: 43.893036806200001, longitude: 20.34926420108)
CLLocationCoordinate2D(latitude: 43.89306377823393, longitude: 20.349264201048999)
CLLocationCoordinate2D(latitude: 43.893009834158079, longitude: 20.349264201048999)

or e.g.

for minCountForClustering = 2 this points won't uncluster:

CLLocationCoordinate2D(latitude: 45.804680699999999, longitude: 15.9769924)
CLLocationCoordinate2D(latitude: 45.804679899999996, longitude: 15.9769963)

Environment

efremidze commented 6 years ago

It depends on the zoom level and cell size. I'm working on a new version with better clustering management.

efremidze commented 6 years ago

Released 2.3.0. Let me know if you still see the bug.