Skip to content

Terrain

The terrain configuration.

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

source

Required string

The source for the terrain data.

SDK Support MapLibre GL JS Android SDK iOS SDK macOS SDK
basic functionality 2.2.0 Not supported yet Not supported yet Not supported yet

exaggeration

Optional number. Defaults to 1

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

SDK Support MapLibre GL JS Android SDK iOS SDK macOS SDK
basic functionality 2.2.0 Not supported yet Not supported yet Not supported yet