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
type MarkerFootprint = {
anchor: NonNullable<MarkerOptions["anchor"]>;
height: number;
mapAligned: boolean;
offset: [number, number];
pivot: [number, number];
rotation: number;
width: number;
}
anchor: NonNullable<MarkerOptions["anchor"]>;
height: number;
mapAligned: boolean;
offset: [number, number];
pivot: [number, number];
rotation: number;
width: number;
}
Properties
anchor
Which point of the element sits on the marker's screen position.
height
height: number
Rendered height in CSS px, with 2-D scale applied.
mapAligned
mapAligned: boolean
true when the marker rotates with the map bearing (rotationAlignment: "map").
offset
offset: [number, number]
Screen-space pixel offset applied after projection (+y down).
pivot
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
rotation: number
The marker's own rotation in degrees (its inner-shell CSS rotation).
width
width: number
Rendered width in CSS px, with 2-D scale applied.
A marker's screen footprint, resolved from its props once per pass — never measured from the DOM inside the pass. (.getBoundingClientRect triggers layout)