<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/AnnotationCollisionMode/Rectangle",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration Case",
  "symbol" : {
    "kind" : "Enumeration Case",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "enumelt/mapkit.AnnotationCollisionMode/Rectangle"
  },
  "title" : "Rectangle"
}
-->

# Rectangle

Uses the full collision frame rectangle to detect collisions.

```
readonly Rectangle: "rectangle";
```

## Discussion

The bounding box of the annotation is used for collision detection.

---

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)