HillshadeLayer class

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

Inheritance

Constructors

HillshadeLayer({required String id, Visibility? visibility, List<Object>? visibilityExpression, List<Object>? filter, double? minZoom, double? maxZoom, String? slot, required String sourceId, String? sourceLayer, int? hillshadeAccentColor, List<Object>? hillshadeAccentColorExpression, double? hillshadeEmissiveStrength, List<Object>? hillshadeEmissiveStrengthExpression, double? hillshadeExaggeration, List<Object>? hillshadeExaggerationExpression, int? hillshadeHighlightColor, List<Object>? hillshadeHighlightColorExpression, HillshadeIlluminationAnchor? hillshadeIlluminationAnchor, List<Object>? hillshadeIlluminationAnchorExpression, double? hillshadeIlluminationDirection, List<Object>? hillshadeIlluminationDirectionExpression, int? hillshadeShadowColor, List<Object>? hillshadeShadowColorExpression})

Properties

filter List<Object>?
An expression specifying conditions on source features. Only features that match the filter are displayed.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
hillshadeAccentColor int?
The shading color used to accentuate rugged terrain like sharp cliffs and gorges. Default value: "#000000".
read / write
hillshadeAccentColorExpression List<Object>?
The shading color used to accentuate rugged terrain like sharp cliffs and gorges. Default value: "#000000".
read / write
hillshadeEmissiveStrength double?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
read / write
hillshadeEmissiveStrengthExpression List<Object>?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
read / write
hillshadeExaggeration double?
Intensity of the hillshade Default value: 0.5. Value range: 0, 1
read / write
hillshadeExaggerationExpression List<Object>?
Intensity of the hillshade Default value: 0.5. Value range: 0, 1
read / write
hillshadeHighlightColor int?
The shading color of areas that faces towards the light source. Default value: "#FFFFFF".
read / write
hillshadeHighlightColorExpression List<Object>?
The shading color of areas that faces towards the light source. Default value: "#FFFFFF".
read / write
hillshadeIlluminationAnchor HillshadeIlluminationAnchor?
Direction of light source when map is rotated. Default value: "viewport".
read / write
hillshadeIlluminationAnchorExpression List<Object>?
Direction of light source when map is rotated. Default value: "viewport".
read / write
hillshadeIlluminationDirection double?
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
read / write
hillshadeIlluminationDirectionExpression List<Object>?
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
read / write
hillshadeShadowColor int?
The shading color of areas that face away from the light source. Default value: "#000000".
read / write
hillshadeShadowColorExpression List<Object>?
The shading color of areas that face away from the light source. Default value: "#000000".
read / write
id String
The ID of the Layer.
read / writeinherited
maxZoom double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
read / writeinherited
minZoom double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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.
read / writeinherited
sourceId String
The id of the source.
read / write
sourceLayer String?
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
read / write
visibility Visibility?
The visibility of the layer.
read / writeinherited
visibilityExpression List<Object>?
The visibility of the layer.
read / writeinherited

Methods

getType() String
Get the type of current layer as a String.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(String properties) HillshadeLayer