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.
Whether the raster layer is allowed to drape over terrain and globe. When disabled, the layer is rendered after all draped layers, which can change its position in the layer order. Disabling draping has a performance cost, since the terrain/globe geometry must be rendered again for each such layer. Default value: true.
When raster-color is active, specifies how the raster value is computed from a non-rasterarray source's channels, using the equation mix.r - src.r + mix.g - src.g + mix.b - src.b + mix.a. The first three components weight the source's red, green, and blue channels; the fourth is a constant offset and is not multiplied by source alpha. Source alpha is carried through and applied as opacity to the colorized result. The default corresponds to RGB luminosity. rasterarray sources ignore this property, as their raster value is decoded directly from the source data. Default value: 0.2126,0.7152,0.0722,0.
When raster-color is active, specifies the range of raster values mapped onto the color ramp, from the start of the ramp (low bound) to its end (high bound). For rasterarray sources the raster value is the decoded source data in the source's own units, and the source's stated data range is used when this property is unspecified. For other raster sources the raster value is computed from the source's channels via raster-color-mix. Defaults to [0, 1] when no range is otherwise available.
Overrides applying of color theme for rasterColor if "none" is set. To follow default theme "default" should be set. Default value: "default".
Defines the transition of rasterElevation.