RasterStyleLayer class final
Raster map textures such as satellite imagery.
- Inheritance
-
- Object
- StyleLayer
- StyleLayerWithSource
- RasterStyleLayer
Constructors
-
RasterStyleLayer({required String id, required String sourceId, String? sourceLayerId, double minZoom = 0, double maxZoom = 24, bool visible = true, Expression<
num> ? opacity, StyleTransition? opacityTransition, Expression<num> ? hueRotate, StyleTransition? hueRotateTransition, Expression<num> ? brightnessMin, StyleTransition? brightnessMinTransition, Expression<num> ? brightnessMax, StyleTransition? brightnessMaxTransition, Expression<num> ? saturation, StyleTransition? saturationTransition, Expression<num> ? contrast, StyleTransition? contrastTransition, Expression<RasterResampling> ? resampling, Expression<RasterResampling> ? rasterResampling, Expression<num> ? fadeDuration}) - Creates a RasterStyleLayer that is not on a map yet.
-
RasterStyleLayer.fromJson(Map<
String, Object?> json) - Reads a RasterStyleLayer from the JSON of a style layer.
Properties
-
brightnessMax
↔ Expression<
num> -
Increase or reduce the brightness of the image. The value is the maximum
brightness.
getter/setter pair
- brightnessMaxTransition ↔ StyleTransition?
-
How brightnessMax changes to a new value.
getter/setter pair
-
brightnessMin
↔ Expression<
num> -
Increase or reduce the brightness of the image. The value is the minimum
brightness.
getter/setter pair
- brightnessMinTransition ↔ StyleTransition?
-
How brightnessMin changes to a new value.
getter/setter pair
-
contrast
↔ Expression<
num> -
Increase or reduce the contrast of the image.
getter/setter pair
- contrastTransition ↔ StyleTransition?
-
How contrast changes to a new value.
getter/setter pair
-
fadeDuration
↔ Expression<
num> -
Fade duration when a new tile is added, or when a video is started or its
coordinates are updated.
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-stateexpression is not supported in them.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
hueRotate
↔ Expression<
num> -
Rotates hues around the color wheel.
getter/setter pair
- hueRotateTransition ↔ StyleTransition?
-
How hueRotate changes to a new value.
getter/setter pair
- 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
-
opacity
↔ Expression<
num> -
The opacity at which the image will be drawn.
getter/setter pair
- opacityTransition ↔ StyleTransition?
-
How opacity changes to a new value.
getter/setter pair
-
rasterResampling
↔ Expression<
RasterResampling> -
The resampling/interpolation method to use for overscaling, also known as
texture magnification filter. It is advised to use the generic
resamplingpaint property instead.getter/setter pair -
resampling
↔ Expression<
RasterResampling> -
The resampling/interpolation method to use for overscaling, also known as
texture magnification filter.
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
saturation
↔ Expression<
num> -
Increase or reduce the saturation of the image.
getter/setter pair
- saturationTransition ↔ StyleTransition?
-
How saturation changes to a new value.
getter/setter pair
- 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
otherand leaves the rest alone. Only the changes reach the map.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited