logo
Style Spec

Terrain

Add 3D terrain to the map.

"terrain": {
  "source": "raster-dem-source",
  "exaggeration": 0.5
}

exaggeration

Optional number. Defaults to 1.

The exaggeration of the terrain - how high it will look.

SDK SupportMapLibre GL JSAndroid SDKiOS SDKmacOS SDK

basic functionality

>= 2.2.0Not yet supportedNot yet supportedNot yet supported

source

Required string.

The source for the terrain data.

SDK SupportMapLibre GL JSAndroid SDKiOS SDKmacOS SDK

basic functionality

>= 2.2.0Not yet supportedNot yet supportedNot yet supported
MapLibre Style repository Edit page