The annotation that is selected.
- MapKit JS 5.0+
The value of
selected is either:
mapkitobject, if one is selected, or
null, if no annotations are selected.
An annotation is selected if its
selected property is
true. To deselect all annotations, set this attribute to
To select an annotation that is already part of the map, set this attribute to the desired annotation.
When the selected annotation is removed from the map (as an effect of
remove, or setting a new set of annotations with the
annotations property), it is deselected before being removed.