MTHillshadeLayer

@Serializable
class MTHillshadeLayer : MTLayer

A hillshade style layer renders digital elevation model (DEM) data on the client-side.

Supports Terrain RGB and Mapzen Terrarium encodings via a raster-dem source.

Constructors

constructor(identifier: String, sourceIdentifier: String)
constructor(identifier: String, sourceIdentifier: String, maxZoom: Double, minZoom: Double, sourceLayer: String)
constructor(identifier: String, type: MTLayerType, sourceIdentifier: String, maxZoom: Double?, minZoom: Double?, sourceLayer: String?, accentColor: Int?, exaggeration: Double?, highlightColor: Int?, illuminationAnchor: MTHillshadeIlluminationAnchor?, illuminationDirection: Double?, shadowColor: Int?, visibility: MTLayerVisibility)

Properties

@Serializable(with = ColorAsHexSerializer::class)
var accentColor: Int?

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

Intensity of the hillshade in 0, 1.

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

@SerialName(value = "id")
open override var identifier: String

Unique layer identifier.

Direction frame for illumination when map is rotated.

The direction of the light source (0..359).

@SerialName(value = "maxzoom")
open override var maxZoom: Double?

The maximum zoom level for the layer.

@SerialName(value = "minzoom")
open override var minZoom: Double?

The minimum zoom level for the layer.

@Serializable(with = ColorAsHexSerializer::class)
var shadowColor: Int?

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

@SerialName(value = "source")
open override var sourceIdentifier: String

Identifier of the source to be used for this layer.

@SerialName(value = "source-layer")
open override var sourceLayer: String?

Vector tile source layer name (not used for raster-dem).

open override var type: MTLayerType

Type of the layer.

Controls whether this layer is displayed.