MapLayr
    Preparing search index...

    Interface AnnotationOptions

    Options to configure an annotation.

    interface AnnotationOptions {
        anchor?: { x: number; y: number };
        anchorOffset?: { x: number; y: number };
        node: () => HTMLElement;
        position: Coordinates | MapPoint;
    }
    Index

    Properties

    anchor?: { x: number; y: number }

    The proportional anchor point of the element.

    { x: 0.5, y: 0.5 }

    anchorOffset?: { x: number; y: number }

    The relative anchor point of the element in CSS pixels.

    { x: 0, y: 0 }

    node: () => HTMLElement

    A factory which generates an HTML element to represent the annotation. The element will be added to the DOM.

    Nodes may be created lazily by the annotation layer.

    position: Coordinates | MapPoint

    The position of the annotation.