Contents

anchorOffset

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

Declaration

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.

See Also

Getting and setting annotation appearance