Class

MKClusterAnnotation

An annotation that groups two or more distinct annotations into a single entity.

Declaration

@interface MKClusterAnnotation : NSObject

Overview

A cluster annotation object stands in for the group of annotations. Cluster views promote legibility of the underlying annotations by displaying a single annotation whose title is taken from one annotation and whose subtitle indicates how many additional annotations belong to the group.

MapKit automatically creates cluster annotations when two or more annotation views become grouped too closely together on the map surface. To customize the cluster annotations displayed on your map, implement the mapView:clusterAnnotationForMemberAnnotations: method in your map's delegate.

Topics

Creating a Cluster Annotation

- initWithMemberAnnotations:

Initializes the cluster annotations with the specified individual annotations.

Getting the Cluster Attributes

title

The title string to display for the group of annotations.

subtitle

The subtitle string to display for the group of annotations.

Getting the Annotations

memberAnnotations

The annotations that are grouped together by the cluster.

Relationships

Inherits From

Conforms To

See Also

Annotation Groups

Decluttering a Map with MapKit Annotation Clustering

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