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

# anchorOffset

An offset that changes the annotation’s default anchor point.

```
get anchorOffset(): DOMPoint;
set anchorOffset(value: DOMPoint);
```

## Discussion

By default, the annotation’s anchor point is the bottom center of the element.

The default anchor point works well for pin marker annotations. To choose a different anchor point, provide an offset from this point. Positive x-values move the element to the left, and positive y-values move the element up. For example, to indicate the center of a circular annotation as the anchor point, use an offset of `DOMPoint(0, -height / 2)`, where `height` is the height of the element.

---

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)