On this page

Type Alias RasterDEMSourceSpecification

type RasterDEMSourceSpecification = {
    attribution?: string;
    baseShift?: number;
    blueFactor?: number;
    bounds?: [number, number, number, number];
    encoding?: "terrarium" | "mapbox" | "custom";
    greenFactor?: number;
    maxzoom?: number;
    minzoom?: number;
    redFactor?: number;
    tiles?: string[];
    tileSize?: number;
    type: "raster-dem";
    url?: string;
    volatile?: boolean;
}
Index

Properties

attribution?: string

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

baseShift?: number

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

blueFactor?: number

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

1
bounds?: [number, number, number, number]

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

[-180, -85.051129, 180, 85.051129]
encoding?: "terrarium" | "mapbox" | "custom"

The encoding used by this source. Mapbox Terrain RGB is used by default.

"mapbox"
greenFactor?: number

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

1
maxzoom?: number

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

22
minzoom?: number

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

redFactor?: number

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

1
tiles?: string[]

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

tileSize?: number

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

512
type: "raster-dem"

The type of the source.

url?: string

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

volatile?: boolean

A setting to determine whether a source's tiles are cached locally.

Was this helpful?
SDK JS
Reference
RasterDEMSourceSpecification