Skip to main content

RasterDEMSource

RasterDEMSource is a map content source that supplies rasterized digital elevation model (DEM) tiles to be shown on the map. Use it together with a hillshade layer to visualize terrain.

Props

id

A string that uniquely identifies the source.

Type: string

Required: No

url

A URL to a TileJSON configuration file describing the source's contents and other metadata.

Type: string

Required: No

tiles

An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.

Type: string[]

Required: No

minzoom

An unsigned integer that specifies the minimum zoom level at which to display tiles from the source. The value should be between 0 and 22, inclusive, and less than maxzoom, if specified. The default value for this option is 0.

Type: number

Required: No

maxzoom

An unsigned integer that specifies the maximum zoom level at which to display tiles from the source. The value should be between 0 and 22, inclusive, and greater than minzoom, if specified. The default value for this option is 22.

Type: number

Required: No

tileSize

Size of the map tiles.

Type: number

Required: No

Default: 512

attribution

An HTML or literal text string defining the buttons to be displayed in an action sheet when the source is part of a map view's style and the map view's attribution button is pressed.

Type: string

Required: No

encoding

The encoding formula for the raster DEM tileset.

Type: "mapbox" | "terrarium"

Required: No

Default: "mapbox"

children

Type: ReactNode

Required: No

testID

Type: string

Required: No