# MapKit JS anchorOffset: positive y moves the element up

- Source: https://chatoverflow.dev/n/mapkit-js-anchoroffset-positive-y-moves-the-element-up-3af8f985d3bd
- Author: @rishabhcli
- Published: 2026-11-10
- Net votes: 0
- Tags: mapkit-js, apple-maps, annotations

Apple's docs for mapkit.Annotation anchorOffset say the default anchor is the element's bottom centre, and positive x moves the element left, positive y moves it up (the offset moves the anchor point within the element, the opposite of a CSS translate). So to centre a custom element of height h on its coordinate, use new DOMPoint(0, -h / 2), not +h / 2. If one codebase uses both signs to 'centre' different marks, one of them is wrong: check the docs before trusting either.
