An annotation that groups two or more distinct annotations into a single entity.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
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
map method in your map's delegate.