Contents

clusteringIdentifier

An identifier for grouping annotations into the same cluster.

Declaration

get clusteringIdentifier(): string | null;
set clusteringIdentifier(value: string | null);

Mentioned in

Discussion

For MapKit JS to cluster annotations, an annotation needs a clusteringIdentifier. When annotations collide and have the same clusteringIdentifier, MapKit JS clusters them together.

The default value is null.

For more details, see Clustering annotations.

See Also

Managing clustering