---
title: "AltitudeReference | 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 AltitudeReference

AltitudeReference: "ground" | "sea"

What [Marker.setAltitude](https://docs.maptiler.com/sdk-js/api-reference/classes/Marker/#setaltitude)'s meters are measured from.

-   `ground` (default) — above the terrain surface under the marker's lngLat, via `map.queryTerrainElevation()`. Falls back to the flat mercator plane (sea level) when terrain isn't enabled/loaded — so this is a safe default whether or not the map has terrain.
-   `sea` — above sea level / the flat mercator plane outright, ignoring terrain entirely, even when it's enabled.

#### Experimental[](#experimental)
