I have an MKMapView in my App and I've added couple of annotations to it. the problem I am facing is that whenever the map is zoomed out the annotations are clustered automatically. How do I disable this automatic clustering? I am adding couple of screenshots to demonstrate.
I have tried the answer here by setting the clusteringIdentifier
of MKAnnotation
to nil like this
func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
let annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: "marker") annotationView?.isHidden = false
annotationView?.clusteringIdentifier = nil
return annotationView
}
but it didn't solve the problem