HillshadeLayerState

The state holder for HillshadeLayer's layer properties.

See also

Constructors

Link copied to clipboard

Construct an default HillshadeLayerState.

Properties

Link copied to clipboard

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.

Link copied to clipboard

The shading color used to accentuate rugged terrain like sharp cliffs and gorges. Default value: "#000000".

Link copied to clipboard

Defines the transition of hillshadeAccentColor. Default value: "#000000".

Link copied to clipboard

Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.

Link copied to clipboard

Defines the transition of hillshadeEmissiveStrength. Default value: 0. Minimum value: 0.

Link copied to clipboard

Intensity of the hillshade Default value: 0.5. Value range: 0, 1

Link copied to clipboard

Defines the transition of hillshadeExaggeration. Default value: 0.5. Value range: 0, 1

Link copied to clipboard

The shading color of areas that faces towards the light source. Default value: "#FFFFFF".

Link copied to clipboard

Defines the transition of hillshadeHighlightColor. Default value: "#FFFFFF".

Link copied to clipboard

Direction of light source when map is rotated. Default value: "viewport".

Link copied to clipboard

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

Link copied to clipboard

The shading color of areas that face away from the light source. Default value: "#000000".

Link copied to clipboard

Defines the transition of hillshadeShadowColor. Default value: "#000000".

Link copied to clipboard

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden. Value range: 0, 24

Link copied to clipboard

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden. Value range: 0, 24

Link copied to clipboard

Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.

Link copied to clipboard

Whether this layer is displayed. Default value: "visible".