Skip to content

raster_dem_source

Stable

Adds elevation tiles for hillshading and 3D terrain.

Generated from the component's definition in the library, so it always matches the version this demo runs.

Attribute Type Default Description
id required string — Unique identifier for the source
map_id required string — ID of the map to attach to
url string nil TileJSON URL (either url or tiles must be provided)
tiles list nil List of tile URL templates
tile_size integer nil Size of tiles in pixels (default: 512)
min_zoom integer nil Minimum zoom level (default: 0)
max_zoom integer nil Maximum zoom level (default: 22)
attribution string nil Attribution text
bounds list nil Geographic bounds [west, south, east, north]
encoding string nil Encoding format: "mapbox" (default) or "terrarium"
volatile boolean false Whether data should be cached (default: false)
events any [] a list of event names, or :all