RasterDEMSourceSpecification

A raster DEM source. Only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.

See MapLibre Style Spec.

Properties

Link copied to clipboard
abstract var attribution: String?

Contains an attribution to be displayed when map is shown to a user.

Link copied to clipboard
abstract var baseShift: Double?

Value that will be added to encoding mix when decoding. Only used on custom encodings. Defaults to 0

Link copied to clipboard
abstract var blueFactor: Double?

Value that will be multiplied by blue channel value when decoding. Only used on custom encodings. Defaults to 1

Link copied to clipboard
abstract var bounds: Array<Double>?

An array containing longitude and latitude of southwest and northeast corners of source's bounding box in following order: sw.lng, sw.lat, ne.lng, ne.lat. When this property is included in a source, no tiles outside of given bounds are requested by MapLibre. Defaults to -180, -85.051129, 180, 85.051129

Link copied to clipboard
abstract var encoding: String?

The encoding used by this source. Mapbox Terrain RGB is used by default. Defaults to "mapbox"

Link copied to clipboard
abstract var greenFactor: Double?

Value that will be multiplied by green channel value when decoding. Only used on custom encodings. Defaults to 1

Link copied to clipboard
abstract var maxzoom: Int?

Maximum zoom level for which tiles are available, as in TileJSON spec. Data from tiles at maxzoom are used when displaying map at higher zoom levels. Defaults to 22

Link copied to clipboard
abstract var minzoom: Int?

Minimum zoom level for which tiles are available, as in TileJSON spec.

Link copied to clipboard
abstract var redFactor: Double?

Value that will be multiplied by red channel value when decoding. Only used on custom encodings. Defaults to 1

Link copied to clipboard
abstract var tiles: Array<String>?

An array of one or more tile source URLs, as in TileJSON spec.

Link copied to clipboard
abstract var tileSize: Int?

The minimum visual size to display tiles for this layer. Only configurable for raster layers. Defaults to 512

Link copied to clipboard
abstract var type: String

The source type: "geojson", "vector", "raster", "raster-dem", "image", or "video".

Link copied to clipboard
abstract var url: String?

A URL to a TileJSON resource. Supported protocols are http: and https:.