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

# MapOverlaySelectionEvent

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

```
class MapOverlaySelectionEvent extends Event
```

## Discussion

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

## Topics

### Instance Properties

[`readonly overlay: Overlay;`](/documentation/MapKitJS/MapOverlaySelectionEvent/overlay)

The overlay that the framework 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)