For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias MarkerFootprint

A marker's screen footprint, resolved from its props once per pass — never measured from the DOM inside the pass. (.getBoundingClientRect triggers layout)

type MarkerFootprint = {
    anchor: NonNullable<MarkerOptions["anchor"]>;
    height: number;
    mapAligned: boolean;
    offset: [number, number];
    pivot: [number, number];
    rotation: number;
    width: number;
}
Index

Properties

Which point of the element sits on the marker's screen position.

height: number

Rendered height in CSS px, with 2-D scale applied.

mapAligned: boolean

true when the marker rotates with the map bearing (rotationAlignment: "map").

offset: [number, number]

Screen-space pixel offset applied after projection (+y down).

pivot: [number, number]

Displacement from the element center to the rotation origin, in CSS px (+y down). Mirrors the inner wrapper's CSS transform-origin: [0, 0] for center-origin elements, [0, height / 2] for bottom-anchored shapes that rotate around their tip.

rotation: number

The marker's own rotation in degrees (its inner-shell CSS rotation).

width: number

Rendered width in CSS px, with 2-D scale applied.

Was this helpful?