Type Alias TAddMarkerOptions

TAddMarkerOptions: {
    anchor?: TMarkerAnchor | TMarkerAnchor[];
    dynamicResize?: boolean;
    interactive?: boolean | "pointer-events-auto";
    layer?: string;
    rank?: TCollisionRankingTier;
}

Options for controlling the behavior of a Marker.

Type declaration

  • Optionalanchor?: TMarkerAnchor | TMarkerAnchor[]

    Optional. Specifies the anchor point of the marker, determining its position relative to its coordinates. If a list is provided, the marker will be anchored to the first anchor point that is available.

    The active anchor will be exposed as a DOM attribute data-anchor on the marker element.

    For the possible values and their descriptions, see TMarkerAnchor.

  • OptionaldynamicResize?: boolean

    Dynamic resize of the marker. If set to true, the marker will resize based on the content.

  • Optionalinteractive?: boolean | "pointer-events-auto"

    Whether the Marker should be clickable. If true the marker will be registered in the SDK interaction events. If 'pointer-events-auto' the marker will receive browser pointer events.

    false
    
  • Optionallayer?: string

    Optional layer to attach the Marker to.

  • Optionalrank?: TCollisionRankingTier

    Optional. Determines the collision ranking tier of the marker, which influences its visibility in relation to other colliders. For the possible values ('medium', 'high', 'always-visible') and their impact on label visibility, see TCollisionRankingTier.