HillshadeLayer
public struct HillshadeLayer : Layer
Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
See also
Mapbox Style Specification-
Unique layer name
Declaration
Swift
public var id: String
-
Rendering type of this layer.
Declaration
Swift
public let type: LayerType
-
An expression specifying conditions on source features. Only features that match the filter are displayed.
Declaration
Swift
public var filter: Expression?
-
Name of a source description to be used for this layer. Required for all layer types except
BackgroundLayer
,SkyLayer
, andLocationIndicatorLayer
.Declaration
Swift
public var source: String?
-
Layer to use from a vector tile source.
Required for vector tile sources. Prohibited for all other source types, including GeoJSON sources.
Declaration
Swift
public var sourceLayer: 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.
Declaration
Swift
public var slot: String?
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
Declaration
Swift
public var minZoom: Double?
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
Declaration
Swift
public var maxZoom: Double?
-
Whether this layer is displayed.
Declaration
Swift
public var visibility: Value<Visibility>
-
The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
Declaration
Swift
public var hillshadeAccentColor: Value<StyleColor>?
-
Transition options for
hillshadeAccentColor
.Declaration
Swift
public var hillshadeAccentColorTransition: StyleTransition?
-
Intensity of the hillshade
Declaration
Swift
public var hillshadeExaggeration: Value<Double>?
-
Transition options for
hillshadeExaggeration
.Declaration
Swift
public var hillshadeExaggerationTransition: StyleTransition?
-
The shading color of areas that faces towards the light source.
Declaration
Swift
public var hillshadeHighlightColor: Value<StyleColor>?
-
Transition options for
hillshadeHighlightColor
.Declaration
Swift
public var hillshadeHighlightColorTransition: StyleTransition?
-
Direction of light source when map is rotated.
Declaration
Swift
public var hillshadeIlluminationAnchor: Value<HillshadeIlluminationAnchor>?
-
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 toviewport
and due north ifhillshade-illumination-anchor
is set tomap
.Declaration
Swift
public var hillshadeIlluminationDirection: Value<Double>?
-
The shading color of areas that face away from the light source.
Declaration
Swift
public var hillshadeShadowColor: Value<StyleColor>?
-
Transition options for
hillshadeShadowColor
.Declaration
Swift
public var hillshadeShadowColorTransition: StyleTransition?
-
Undocumented
Declaration
Swift
public init(id: String, source: String)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws