---
title: "MarkerFootprint | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/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](#anchor): [NonNullable](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.NonNullable/)<[MarkerOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerOptions/)\[["anchor"](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerOptions/#anchor)\]\>;  
    [height](#height): number;  
    [mapAligned](#mapaligned): boolean;  
    [offset](#offset): \[number, number\];  
    [pivot](#pivot): \[number, number\];  
    [rotation](#rotation): number;  
    [width](#width): number;  
}

##### Index

### Properties

[anchor](#anchor) [height](#height) [mapAligned](#mapaligned) [offset](#offset) [pivot](#pivot) [rotation](#rotation) [width](#width)

## Properties

### anchor[](#anchor)

anchor: [NonNullable](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.NonNullable/)<[MarkerOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerOptions/)\[["anchor"](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerOptions/#anchor)\]\>

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

### height[](#height)

height: number

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

### mapAligned[](#mapaligned)

mapAligned: boolean

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

### offset[](#offset)

offset: \[number, number\]

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

### pivot[](#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)

rotation: number

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

### width[](#width)

width: number

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