<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/MapAnnotationSelectionEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "cl/mapkit.MapAnnotationSelectionEvent"
  },
  "title" : "MapAnnotationSelectionEvent"
}
-->

# MapAnnotationSelectionEvent

An event object that the map object dispatches when someone selects or deselects an annotation.

```
class MapAnnotationSelectionEvent extends Event
```

## Discussion

The [`Map`](/documentation/MapKitJS/Map) dispatches a [`MapAnnotationSelectionEvent`](/documentation/MapKitJS/MapAnnotationSelectionEvent) when someone selects or deselects an annotation. The event type can be `select` or `deselect`.

## Topics

### Instance Properties

[`readonly annotation: Annotation;`](/documentation/MapKitJS/MapAnnotationSelectionEvent/annotation)

The annotation that someone selected or deselected.

## Relationships

### Inherits From

`Event`

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)