HillshadeLayer

class HillshadeLayer(val layerId: String, val sourceId: String) : Layer, HillshadeLayerDsl

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

See also

Parameters

layerId

the ID of the layer

sourceId

the ID of the source

Constructors

Link copied to clipboard
fun HillshadeLayer(layerId: String, sourceId: String)

Types

Link copied to clipboard
object Companion

Static variables and methods.

Functions

Link copied to clipboard
fun bindTo(delegate: MapboxStyleManager)

Bind the layer to the Style.

open override fun bindTo(delegate: MapboxStyleManager, position: LayerPosition?)

Bind the layer to the map controller.

Link copied to clipboard
open override fun hillshadeAccentColor(hillshadeAccentColor: Expression): HillshadeLayer
open override fun hillshadeAccentColor(@ColorInt hillshadeAccentColor: Int): HillshadeLayer
open override fun hillshadeAccentColor(hillshadeAccentColor: String): HillshadeLayer

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

Link copied to clipboard

Set the HillshadeAccentColor property transition options

Link copied to clipboard
open override fun hillshadeEmissiveStrength(hillshadeEmissiveStrength: Expression): HillshadeLayer
open override fun hillshadeEmissiveStrength(hillshadeEmissiveStrength: Double): HillshadeLayer

Controls the intensity of light emitted on the source features.

Link copied to clipboard

Set the HillshadeEmissiveStrength property transition options

Link copied to clipboard
open override fun hillshadeExaggeration(hillshadeExaggeration: Expression): HillshadeLayer
open override fun hillshadeExaggeration(hillshadeExaggeration: Double): HillshadeLayer

Intensity of the hillshade

Link copied to clipboard

Set the HillshadeExaggeration property transition options

Link copied to clipboard
open override fun hillshadeHighlightColor(hillshadeHighlightColor: Expression): HillshadeLayer
open override fun hillshadeHighlightColor(@ColorInt hillshadeHighlightColor: Int): HillshadeLayer
open override fun hillshadeHighlightColor(hillshadeHighlightColor: String): HillshadeLayer

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

Link copied to clipboard

Set the HillshadeHighlightColor property transition options

Link copied to clipboard
open override fun hillshadeIlluminationAnchor(hillshadeIlluminationAnchor: Expression): HillshadeLayer
open override fun hillshadeIlluminationAnchor(hillshadeIlluminationAnchor: HillshadeIlluminationAnchor): HillshadeLayer

Direction of light source when map is rotated.

Link copied to clipboard
open override fun hillshadeIlluminationDirection(hillshadeIlluminationDirection: Expression): HillshadeLayer
open override fun hillshadeIlluminationDirection(hillshadeIlluminationDirection: Double): HillshadeLayer

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.

Link copied to clipboard
open override fun hillshadeShadowColor(hillshadeShadowColor: Expression): HillshadeLayer
open override fun hillshadeShadowColor(@ColorInt hillshadeShadowColor: Int): HillshadeLayer
open override fun hillshadeShadowColor(hillshadeShadowColor: String): HillshadeLayer

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

Link copied to clipboard

Set the HillshadeShadowColor property transition options

Link copied to clipboard
open override fun maxZoom(maxZoom: Double): HillshadeLayer

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

Link copied to clipboard
open override fun minZoom(minZoom: Double): HillshadeLayer

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

Link copied to clipboard
open override fun slot(slot: String): HillshadeLayer

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.

Link copied to clipboard
open override fun sourceLayer(sourceLayer: String): HillshadeLayer

A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.

Link copied to clipboard
open override fun visibility(visibility: Expression): HillshadeLayer
open override fun visibility(visibility: Visibility): HillshadeLayer

Whether this layer is displayed.

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Transition options for HillshadeAccentColor.

Link copied to clipboard

Controls the intensity of light emitted on the source features.

Link copied to clipboard

Controls the intensity of light emitted on the source features.

Link copied to clipboard

Transition options for HillshadeEmissiveStrength.

Link copied to clipboard

Intensity of the hillshade

Link copied to clipboard

Intensity of the hillshade

Link copied to clipboard

Transition options for HillshadeExaggeration.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Transition options for HillshadeHighlightColor.

Link copied to clipboard

Direction of light source when map is rotated.

Link copied to clipboard

Direction of light source when map is rotated.

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.

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Transition options for HillshadeShadowColor.

Link copied to clipboard
open override val layerId: String
Link copied to clipboard
open override val maxZoom: Double?

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

Link copied to clipboard
open override val minZoom: Double?

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

Link copied to clipboard
open override val slot: String?

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.

Link copied to clipboard
Link copied to clipboard

A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.

Link copied to clipboard
open override val visibility: Visibility?

Whether this layer is displayed.

Link copied to clipboard

Whether this layer is displayed.

Extensions

Link copied to clipboard

Get the persistent property as Boolean.