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 AltitudeReference

AltitudeReference: "ground" | "sea"

What 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.
Was this helpful?