RasterLayer class

Raster map textures such as satellite imagery.

Inheritance

Constructors

RasterLayer({required String id, Visibility? visibility, List<Object>? visibilityExpression, List<Object>? filter, double? minZoom, double? maxZoom, String? slot, required String sourceId, String? sourceLayer, String? rasterArrayBand, List<Object>? rasterArrayBandExpression, double? rasterBrightnessMax, List<Object>? rasterBrightnessMaxExpression, double? rasterBrightnessMin, List<Object>? rasterBrightnessMinExpression, int? rasterColor, List<Object>? rasterColorExpression, List<double?>? rasterColorMix, List<Object>? rasterColorMixExpression, List<double?>? rasterColorRange, List<Object>? rasterColorRangeExpression, double? rasterContrast, List<Object>? rasterContrastExpression, double? rasterElevation, List<Object>? rasterElevationExpression, double? rasterEmissiveStrength, List<Object>? rasterEmissiveStrengthExpression, double? rasterFadeDuration, List<Object>? rasterFadeDurationExpression, double? rasterHueRotate, List<Object>? rasterHueRotateExpression, double? rasterOpacity, List<Object>? rasterOpacityExpression, RasterResampling? rasterResampling, List<Object>? rasterResamplingExpression, double? rasterSaturation, List<Object>? rasterSaturationExpression})

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
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
rasterArrayBand String?
Displayed band of raster array source layer. Defaults to the first band if not set.
read / write
rasterArrayBandExpression List<Object>?
Displayed band of raster array source layer. Defaults to the first band if not set.
read / write
rasterBrightnessMax double?
Increase or reduce the brightness of the image. The value is the maximum brightness. Default value: 1. Value range: 0, 1
read / write
rasterBrightnessMaxExpression List<Object>?
Increase or reduce the brightness of the image. The value is the maximum brightness. Default value: 1. Value range: 0, 1
read / write
rasterBrightnessMin double?
Increase or reduce the brightness of the image. The value is the minimum brightness. Default value: 0. Value range: 0, 1
read / write
rasterBrightnessMinExpression List<Object>?
Increase or reduce the brightness of the image. The value is the minimum brightness. Default value: 0. Value range: 0, 1
read / write
rasterColor int?
Defines a color map by which to colorize a raster layer, parameterized by the ["raster-value"] expression and evaluated at 256 uniformly spaced steps over the range specified by raster-color-range.
read / write
rasterColorExpression List<Object>?
Defines a color map by which to colorize a raster layer, parameterized by the ["raster-value"] expression and evaluated at 256 uniformly spaced steps over the range specified by raster-color-range.
read / write
rasterColorMix List<double?>?
When raster-color is active, specifies the combination of source RGB channels used to compute the raster value. Computed using the equation mix.r - src.r + mix.g - src.g + mix.b - src.b + mix.a. The first three components specify the mix of source red, green, and blue channels, respectively. The fourth component serves as a constant offset and is -not- multipled by source alpha. Source alpha is instead carried through and applied as opacity to the colorized result. Default value corresponds to RGB luminosity. Default value: 0.2126,0.7152,0.0722,0.
read / write
rasterColorMixExpression List<Object>?
When raster-color is active, specifies the combination of source RGB channels used to compute the raster value. Computed using the equation mix.r - src.r + mix.g - src.g + mix.b - src.b + mix.a. The first three components specify the mix of source red, green, and blue channels, respectively. The fourth component serves as a constant offset and is -not- multipled by source alpha. Source alpha is instead carried through and applied as opacity to the colorized result. Default value corresponds to RGB luminosity. Default value: 0.2126,0.7152,0.0722,0.
read / write
rasterColorRange List<double?>?
When raster-color is active, specifies the range over which raster-color is tabulated. Units correspond to the computed raster value via raster-color-mix. For rasterarray sources, if raster-color-range is unspecified, the source's stated data range is used.
read / write
rasterColorRangeExpression List<Object>?
When raster-color is active, specifies the range over which raster-color is tabulated. Units correspond to the computed raster value via raster-color-mix. For rasterarray sources, if raster-color-range is unspecified, the source's stated data range is used.
read / write
rasterContrast double?
Increase or reduce the contrast of the image. Default value: 0. Value range: -1, 1
read / write
rasterContrastExpression List<Object>?
Increase or reduce the contrast of the image. Default value: 0. Value range: -1, 1
read / write
rasterElevation double?
Specifies an uniform elevation from the ground, in meters. Default value: 0. Minimum value: 0.
read / write
rasterElevationExpression List<Object>?
Specifies an uniform elevation from the ground, in meters. Default value: 0. Minimum value: 0.
read / write
rasterEmissiveStrength double?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
read / write
rasterEmissiveStrengthExpression List<Object>?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
read / write
rasterFadeDuration double?
Fade duration when a new tile is added. Default value: 300. Minimum value: 0.
read / write
rasterFadeDurationExpression List<Object>?
Fade duration when a new tile is added. Default value: 300. Minimum value: 0.
read / write
rasterHueRotate double?
Rotates hues around the color wheel. Default value: 0.
read / write
rasterHueRotateExpression List<Object>?
Rotates hues around the color wheel. Default value: 0.
read / write
rasterOpacity double?
The opacity at which the image will be drawn. Default value: 1. Value range: 0, 1
read / write
rasterOpacityExpression List<Object>?
The opacity at which the image will be drawn. Default value: 1. Value range: 0, 1
read / write
rasterResampling RasterResampling?
The resampling/interpolation method to use for overscaling, also known as texture magnification filter Default value: "linear".
read / write
rasterResamplingExpression List<Object>?
The resampling/interpolation method to use for overscaling, also known as texture magnification filter Default value: "linear".
read / write
rasterSaturation double?
Increase or reduce the saturation of the image. Default value: 0. Value range: -1, 1
read / write
rasterSaturationExpression List<Object>?
Increase or reduce the saturation of the image. Default value: 0. Value range: -1, 1
read / write
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) RasterLayer