Contents

calloutOffset

An offset that changes the annotation callout’s default placement.

Declaration

get calloutOffset(): DOMPoint | undefined;
set calloutOffset(value: DOMPoint | undefined);

Discussion

By default, MapKit JS places the callout bubble slightly (1 pixel) above the top-center point of the annotation element.

To choose a different placement, provide an offset point where positive x-values move the callout bubble to the left, and positive y-values move the callout bubble up. For example, to leave a 5-pixel margin between the top of the annotation and the bottom of the callout, use a callout offset of DOMPoint(0, 5).

See Also

Managing callouts