Skip to main content

Terrain

Mapbox spec: terrain

import { Terrain } from '@rnmapbox/maps';

Terrain

props

sourceID

string

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

exaggeration

Value

Deprecated, use exaggeration in style instead

style

TerrainLayerStyleProps

Customizable style attributes

styles


source

Name: source

Mapbox spec: source

Description

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

Type

string


exaggeration

Name: exaggeration

Mapbox spec: 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


exaggerationTransition

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}