HillshadeLayer class
Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
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.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hillshadeAccentColor ↔ int?
-
The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
Default value: "#000000".
getter/setter pair
-
hillshadeAccentColorExpression
↔ List<
Object> ? -
The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
Default value: "#000000".
getter/setter pair
- hillshadeEmissiveStrength ↔ double?
-
Controls the intensity of light emitted on the source features.
Default value: 0. Minimum value: 0.
getter/setter pair
-
hillshadeEmissiveStrengthExpression
↔ List<
Object> ? -
Controls the intensity of light emitted on the source features.
Default value: 0. Minimum value: 0.
getter/setter pair
- hillshadeExaggeration ↔ double?
-
Intensity of the hillshade
Default value: 0.5. Value range:
0, 1
getter/setter pair -
hillshadeExaggerationExpression
↔ List<
Object> ? -
Intensity of the hillshade
Default value: 0.5. Value range:
0, 1
getter/setter pair - hillshadeHighlightColor ↔ int?
-
The shading color of areas that faces towards the light source.
Default value: "#FFFFFF".
getter/setter pair
-
hillshadeHighlightColorExpression
↔ List<
Object> ? -
The shading color of areas that faces towards the light source.
Default value: "#FFFFFF".
getter/setter pair
- hillshadeIlluminationAnchor ↔ HillshadeIlluminationAnchor?
-
Direction of light source when map is rotated.
Default value: "viewport".
getter/setter pair
-
hillshadeIlluminationAnchorExpression
↔ List<
Object> ? -
Direction of light source when map is rotated.
Default value: "viewport".
getter/setter pair
- 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 toviewport
and due north ifhillshade-illumination-anchor
is set tomap
and no 3d lights enabled. Ifhillshade-illumination-anchor
is set tomap
and 3d lights enabled, the direction from 3d lights is used instead. Default value: 335. Value range:0, 359
getter/setter pair -
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 toviewport
and due north ifhillshade-illumination-anchor
is set tomap
and no 3d lights enabled. Ifhillshade-illumination-anchor
is set tomap
and 3d lights enabled, the direction from 3d lights is used instead. Default value: 335. Value range:0, 359
getter/setter pair - hillshadeShadowColor ↔ int?
-
The shading color of areas that face away from the light source.
Default value: "#000000".
getter/setter pair
-
hillshadeShadowColorExpression
↔ List<
Object> ? -
The shading color of areas that face away from the light source.
Default value: "#000000".
getter/setter pair
- id ↔ String
-
The ID of the Layer.
getter/setter pairinherited
- maxZoom ↔ double?
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
- minZoom ↔ double?
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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.
getter/setter pairinherited
- sourceId ↔ String
-
The id of the source.
getter/setter pair
- sourceLayer ↔ String?
-
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
getter/setter pair
- visibility ↔ Visibility?
-
The visibility of the layer.
getter/setter pairinherited
-
visibilityExpression
↔ List<
Object> ? -
The visibility of the layer.
getter/setter pairinherited
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