Terrain
A style's terrain property is a global modifier that elevates layers and markers based on a DEM data source.
"terrain": {
"source": "mapbox-raster-dem",
"exaggeration": 2
}
source
Required string.
Name of a source of raster_dem type to be used for terrain elevation.
exaggeration
Optional number between
0 and 1000 inclusive. Defaults to 1. Supports interpolateexpressions. Transitionable. Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.
| SDK Support | Mapbox GL JS | Android SDK | iOS SDK | macOS SDK |
|---|---|---|---|---|
basic functionality | >= 2.0.0 | Not yet supported | Not yet supported | Not yet supported |