Instance Property


An identifier that determines whether the annotation view participates in clustering.


var clusteringIdentifier: String? { get set }


The default value of this property is nil, which prevents the annotation view from being clustered with other annotation views. Setting the property to a non nil value it to participate in clustering.

Clustering occurs when there is a collision between multiple annotation views with the same identifier on the map surface. The annotation views involved in the collision are removed from the map view and replaced by a clustering annotation view, which displays the title from one of the annotations and provides access to the other annotations.

See Also

Clustering Annotation Views

Decluttering a Map with MapKit Annotation Clustering

Enhance the readability of a map by replacing overlapping annotations with a clustering annotation view.

var cluster: MKAnnotationView?

The clustering annotation view currently standing in for this annotation view.