Skip to content

hillshade_layer

Stable

Shades relief from a raster DEM source.

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 layer
map_id required string — ID of the map to attach to
source_id required string — ID of the raster-dem source
source_layer string nil Layer in the source (for vector tiles, optional)
paint map %{} Paint properties for hillshading effect
layout map %{} Layout properties (visibility)
min_zoom integer nil Minimum zoom level for layer visibility
max_zoom integer nil Maximum zoom level for layer visibility
before_id string nil ID of layer to insert this layer before
events any [] a list of event names, or :all