HillshadeLayer

fun HillshadeLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("hillshade") }, hillshadeAccentColor: HillshadeAccentColor = HillshadeAccentColor.default, hillshadeAccentColorTransition: Transition = Transition.default, hillshadeEmissiveStrength: HillshadeEmissiveStrength = HillshadeEmissiveStrength.default, hillshadeEmissiveStrengthTransition: Transition = Transition.default, hillshadeExaggeration: HillshadeExaggeration = HillshadeExaggeration.default, hillshadeExaggerationTransition: Transition = Transition.default, hillshadeHighlightColor: HillshadeHighlightColor = HillshadeHighlightColor.default, hillshadeHighlightColorTransition: Transition = Transition.default, hillshadeIlluminationAnchor: HillshadeIlluminationAnchor = HillshadeIlluminationAnchor.default, hillshadeIlluminationDirection: HillshadeIlluminationDirection = HillshadeIlluminationDirection.default, hillshadeShadowColor: HillshadeShadowColor = HillshadeShadowColor.default, hillshadeShadowColorTransition: Transition = Transition.default, visibility: Visibility = Visibility.default, minZoom: MinZoom = MinZoom.default, maxZoom: MaxZoom = MaxZoom.default, sourceLayer: SourceLayer = SourceLayer.default, filter: Filter = Filter.default)

Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.

See also

Parameters

sourceState

the source that drives this layer.

layerId

the ID of the layer, by default, a random id will be generated with UUID.

hillshadeAccentColor

The shading color used to accentuate rugged terrain like sharp cliffs and gorges.

hillshadeEmissiveStrength

Controls the intensity of light emitted on the source features.

hillshadeExaggeration

Intensity of the hillshade

hillshadeHighlightColor

The shading color of areas that faces towards the light source.

hillshadeIlluminationAnchor

Direction of light source when map is rotated.

hillshadeIlluminationDirection

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.

hillshadeShadowColor

The shading color of areas that face away from the light source.

visibility

Whether this layer is displayed.

minZoom

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

maxZoom

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

sourceLayer

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

filter

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.