Raster Layer
Raster map textures such as satellite imagery.
See also
Parameters
the ID of the layer
the ID of the source
Constructors
Types
Functions
Bind the layer to the Style.
Bind the layer to the map controller.
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
Displayed band of raster array source layer
Increase or reduce the brightness of the image. The value is the maximum brightness.
Set the RasterBrightnessMax property transition options
DSL for rasterBrightnessMaxTransition.
Increase or reduce the brightness of the image. The value is the minimum brightness.
Set the RasterBrightnessMin property transition options
DSL for rasterBrightnessMinTransition.
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
.
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.
Set the RasterColorMix property transition options
DSL for rasterColorMixTransition.
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
.
Set the RasterColorRange property transition options
DSL for rasterColorRangeTransition.
Increase or reduce the contrast of the image.
Set the RasterContrast property transition options
DSL for rasterContrastTransition.
Controls the intensity of light emitted on the source features.
Set the RasterEmissiveStrength property transition options
DSL for rasterEmissiveStrengthTransition.
Fade duration when a new tile is added.
Rotates hues around the color wheel.
Set the RasterHueRotate property transition options
DSL for rasterHueRotateTransition.
The opacity at which the image will be drawn.
Set the RasterOpacity property transition options
DSL for rasterOpacityTransition.
The resampling/interpolation method to use for overscaling, also known as texture magnification filter
Increase or reduce the saturation of the image.
Set the RasterSaturation property transition options
DSL for rasterSaturationTransition.
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.
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
Whether this layer is displayed.
Properties
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.
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.