Skip to content

Latest commit

 

History

History
77 lines (46 loc) · 1.24 KB

Terrain.md

File metadata and controls

77 lines (46 loc) · 1.24 KB

<MapboxGL.Terrain />

props

Prop Type Default Required Description
sourceID string none true Name of a source of raster_dem type to be used for terrain elevation.
exaggeration Value none false Deprecated, use exaggeration in style instead
style TerrainLayerStyleProps none true Customizable style attributes

styles


source

Name: source

Description

Name of a source of raster_dem type to be used for terrain elevation.

Type

string


exaggeration

Name: exaggeration

Description

Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.

Type

number

Default Value

1

Minimum

0

Maximum

1000

Requires

source

Expression

Parameters: zoom


Name

exaggerationTransition

Description

The transition affecting any changes to this layer’s exaggeration property.

Type

{ duration, delay }

Units

milliseconds

Default Value

{duration: 300, delay: 0}