-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AnnotationViews are overlapping #97
Comments
Thanks for the quick reply! This seemed to fix the overlapping but now the cluster is moving By the way: How can I display the grid on the map for debugging purpose? |
I would give some extra space for the cellSize to avoid it jumping when zooming. I'll add a debug view to see cellSize boundaries. |
You are right. I'll look into why it jumps. |
New Issue Checklist
Issue Description
I tried almost everything and don't know, why I am not getting this thing to work. So I added a custom annotation view, subclass of ClusterAnnotationView. Its size is 50x50. I added the Delegate method:
func cellSize(for zoomLevel: Double) -> Double { return 80 }
And this is my configuration:
clusteringManager.delegate = self clusteringManager.shouldDistributeAnnotationsOnSameCoordinate = true clusteringManager.minCountForClustering = 2 clusteringManager.shouldRemoveInvisibleAnnotations = true clusteringManager.clusterPosition = .average clusteringManager.maxZoomLevel = 15
But I still ending up with this overlapping:
Environment
The text was updated successfully, but these errors were encountered: