I’m using iOS 11 clustering and it works really fine, basically you just need to ad an identifier to the clusteringIdentifier
property of an MKAnnotationView
.
Everything works perfectly but I have an issue, when a user select a marker from a map I'd like to avoid clustering at least on the selected maker.
The mapView doesn't seems to have a property to disable clustering. The only plausible solution is to nil
clusteringIdentifier
, but even if I do that it keeps to cluster.
func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
view.clusteringIdentifier = nil
}
Can someone post me in the right direction?