Skip to main content

Module encoding

Module encoding 

Source
Expand description

Elevation-to-RGB encodings for raster-dem tiles.

Both encodings pack a signed elevation in metres into three 8-bit channels. MapLibre selects the decoder through the encoding field of a raster-dem source, so the emitted PNG must match the declared encoding exactly.

Enums§

TerrainEncoding
Elevation encoding for raster-dem tiles.