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

# MapKitEvent

A generic MapKit JS event object.

```
class MapKitEvent
```

## Discussion

The event object implements similar interfaces as the DOM `Event`, but you shouldn’t mix them.

## Topics

### Instance Properties

[`defaultPrevented: boolean;`](/documentation/MapKitJS/MapKitEvent/defaultPrevented)

A Boolean value that indicates whether the app canceled the event.

[`target: MapKitEventTarget | null;`](/documentation/MapKitJS/MapKitEvent/target)

The object that dispatched the event.

[`type: string;`](/documentation/MapKitJS/MapKitEvent/type)

A string that represents the type of the event.

### Instance Methods

[`preventDefault(): void;`](/documentation/MapKitJS/MapKitEvent/preventDefault)

Cancels the event if it’s cancelable, without stopping further propagation of the event.

[`stopPropagation(): void;`](/documentation/MapKitJS/MapKitEvent/stopPropagation)

Stops further propagation of the 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)