Hillshade Layer
Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
See also
Parameters
the source that drives this layer.
the ID of the layer, by default, a random id will be generated with UUID.
The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
Controls the intensity of light emitted on the source features.
Intensity of the hillshade
The shading color of areas that faces towards the light source.
Direction of light source when map is rotated.
The direction of the light source used to generate the hillshading with 0 as the top of the viewport if hillshade-illumination-anchor
is set to viewport
and due north if hillshade-illumination-anchor
is set to map
and no 3d lights enabled. If hillshade-illumination-anchor
is set to map
and 3d lights enabled, the direction from 3d lights is used instead.
The shading color of areas that face away from the light source.
Whether this layer is displayed.
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.
An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The ["feature-state", ...]
expression is not supported in filter expressions. The ["pitch"]
and ["distance-from-center"]
expressions are supported only for filter expressions on the symbol layer.