<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Annotation/collisionMode-data.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instp/mapkit.Annotation/collisionMode"
  },
  "title" : "collisionMode"
}
-->

# collisionMode

A mode that determines the shape of the collision frame.

```
get collisionMode(): AnnotationCollisionMode;
set collisionMode(value: AnnotationCollisionMode);
```

## Discussion

The collision mode indicates whether the annotation collides, and, if so, the shape of an annotation’s collision frame:

- [`Rectangle`](/documentation/MapKitJS/AnnotationCollisionMode/Rectangle): Indicates the bounding box of the annotation.
- [`Circle`](/documentation/MapKitJS/AnnotationCollisionMode/Circle): Indicates a circle within the bounding box.
- [`None`](/documentation/MapKitJS/AnnotationCollisionMode/None): Indicates the annotation doesn’t collide with other annotations.

The default value is [`Rectangle`](/documentation/MapKitJS/AnnotationCollisionMode/Rectangle).

---

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)