hulab / ClusterKit

An iOS map clustering framework targeting MapKit, Google Maps and Mapbox.
MIT License
512 stars 86 forks source link

Cluster containing multiple annotations with exact same coordinates. #19

Closed ngrichyj4 closed 6 years ago

ngrichyj4 commented 6 years ago

Currently, when a cluster contains multiple annotations with exact same coordinates, they do not expand (display child annotations) when tapped on or zoomed in. Is there a way to add handle such cases or perhaps add displacement to this annotations so they're displayed separately.

maxep commented 6 years ago

You can reduce the maxZoomLevel of the cluster manager to have access to the annotations. But they wont be distinct.

Alex293 commented 6 years ago

+1

Here could be some directions to solve this : https://stackoverflow.com/questions/44698027/correctly-handle-clustering-when-markers-are-placed-identically-and-overlapping

ramanocs1145 commented 6 years ago

Hi maxep, Today I have also faced this kind of issue. After reduce the "maxZoomLevel", I can see the child annotatins.

Thanks for the above solution. :) 👍

alexsteinerde commented 6 years ago

This library handles this quit nice: https://github.com/ashare80/TSClusterMapView It moves the annotations in a circular form around the center