Raster Layer State
The state holder for RasterLayer's layer properties.
See also
Constructors
Construct an default RasterLayerState.
Properties
An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The ["feature-state", ...]
expression is not supported in filter expressions. The ["pitch"]
and ["distance-from-center"]
expressions are supported only for filter expressions on the symbol layer.
Defines the transition of rasterBrightnessMax. Default value: 1. Value range: 0, 1
Defines the transition of rasterBrightnessMin. Default value: 0. Value range: 0, 1
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.
Defines the transition of rasterColorMix. Default value: 0.2126,0.7152,0.0722,0.
Defines the transition of rasterContrast. Default value: 0. Value range: -1, 1
Defines the transition of rasterElevation. Default value: 0. Minimum value: 0.
Defines the transition of rasterEmissiveStrength. Default value: 0. Minimum value: 0.
Defines the transition of rasterHueRotate. Default value: 0.
Defines the transition of rasterOpacity. Default value: 1. Value range: 0, 1
Defines the transition of rasterSaturation. Default value: 0. Value range: -1, 1