ColorReliefStyleLayer class final

Client-side elevation coloring based on DEM data. The implementation supports Mapbox Terrain RGB, Mapzen Terrarium tiles and custom encodings.

https://maplibre.org/maplibre-style-spec/layers/#color-relief

Inheritance

Constructors

ColorReliefStyleLayer({required String id, required String sourceId, String? sourceLayerId, double minZoom = 0, double maxZoom = 24, bool visible = true, Expression<num>? opacity, StyleTransition? opacityTransition, Expression<Color>? color, Expression<ColorReliefResampling>? resampling})
Creates a ColorReliefStyleLayer that is not on a map yet.
ColorReliefStyleLayer.fromJson(Map<String, Object?> json)
Reads a ColorReliefStyleLayer from the JSON of a style layer.

Properties

color ↔ Expression<Color>?
Defines the color of each pixel based on its elevation. Should be an expression that uses the elevation expression as input.
getter/setter pair
filter ↔ Expression<bool>?
The condition on source features. Only features that match it are shown. Zoom expressions in filters are only evaluated at integer zoom levels, and the feature-state expression is not supported in them.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
The unique name of the layer.
finalinherited
maxZoom ↔ double
The maximum zoom level of the layer. At and above it, the layer is hidden.
getter/setter pairinherited
minZoom ↔ double
The minimum zoom level of the layer. Below it, the layer is hidden.
getter/setter pairinherited
onClick ↔ StyleLayerFeatureCallback?
Called when the user taps or clicks a feature of this layer, with the topmost feature under the pointer.
getter/setter pairinherited
onEnter ↔ StyleLayerFeatureCallback?
Called when a mouse or stylus moves onto a feature of this layer.
getter/setter pairinherited
onLeave ↔ StyleLayerFeatureCallback?
Called when the mouse or stylus leaves the feature that onEnter reported, including when it leaves the map.
getter/setter pairinherited
opacity ↔ Expression<num>
The opacity at which the color-relief will be drawn.
getter/setter pair
opacityTransition ↔ StyleTransition?
How opacity changes to a new value.
getter/setter pair
resampling ↔ Expression<ColorReliefResampling>
The resampling/interpolation method to use for overscaling, also known as texture magnification filter. Visual comparison of linear resampling versus nearest
resampling
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId → String
The id of the source of this layer.
finalinherited
sourceLayerId → String?
The layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.
finalinherited
type → String
The type of the layer in the style spec, such as line.
no setteroverride
visible ↔ bool
Whether the layer is shown.
getter/setter pairinherited

Methods

moveBelow(String? layerId) → void
Moves this layer below the layer layerId, or to the top if it is null. See StyleLayers.move.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The layer as the JSON of a style layer.
inherited
toString() → String
A string representation of this object.
inherited
updateFrom(StyleLayer other) → void
Sets every property of this layer that differs from other and leaves the rest alone. Only the changes reach the map.
inherited

Operators

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