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 ID of the layer
the ID of the source
Constructors
Types
Functions
Bind the layer to the Style.
Bind the layer to the map controller.
The shading color used to accentuate rugged terrain like sharp cliffs and gorges. Default value: "#000000".
Set the HillshadeAccentColor property transition options
DSL for hillshadeAccentColorTransition.
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
Set the HillshadeEmissiveStrength property transition options
DSL for hillshadeEmissiveStrengthTransition.
Intensity of the hillshade Default value: 0.5. Value range: 0, 1
Set the HillshadeExaggeration property transition options
DSL for hillshadeExaggerationTransition.
The shading color of areas that faces towards the light source. Default value: "#FFFFFF".
Set the HillshadeHighlightColor property transition options
DSL for hillshadeHighlightColorTransition.
Direction of light source when map is rotated. Default value: "viewport".
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. Default value: 335. Value range: 0, 359
The shading color of areas that face away from the light source. Default value: "#000000".
Set the HillshadeShadowColor property transition options
DSL for hillshadeShadowColorTransition.
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
Whether this layer is displayed.
Properties
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. Default value: 335. Value range: 0, 359
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. Default value: 335. Value range: 0, 359