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.
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.
Displayed band of raster array source layer. Defaults to the first band if not set.
Increase or reduce the brightness of the image. The value is the maximum brightness. Default value: 1. Value range: 0, 1
Set the RasterBrightnessMax property transition options
DSL for rasterBrightnessMaxTransition.
Increase or reduce the brightness of the image. The value is the minimum brightness. Default value: 0. Value range: 0, 1
Set the RasterBrightnessMin property transition options
DSL for rasterBrightnessMinTransition.
Defines the color ramp used to colorize a raster layer, parameterized by the ["raster-value"] expression and evaluated over the range specified by raster-color-range. Raster values are spaced evenly across the range by default.
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.
Set the RasterColorMix property transition options
DSL for rasterColorMixTransition.
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.
Set the RasterColorRange property transition options
DSL for rasterColorRangeTransition.
Set the RasterColorUseTheme as Expression
Set the RasterColorUseTheme as String
Increase or reduce the contrast of the image. Default value: 0. Value range: -1, 1
Set the RasterContrast property transition options
DSL for rasterContrastTransition.
Defines an uniform elevation from the base specified in raster-elevation-reference, in meters. Default value: 0. Minimum value: 0.
Set the RasterElevation property transition options
DSL for rasterElevationTransition.
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0. The unit of rasterEmissiveStrength is in intensity.
Set the RasterEmissiveStrength property transition options
DSL for rasterEmissiveStrengthTransition.
Fade duration when a new tile is added. Default value: 300. Minimum value: 0. The unit of rasterFadeDuration is in milliseconds.
Rotates hues around the color wheel. Default value: 0. The unit of rasterHueRotate is in degrees.
Set the RasterHueRotate property transition options
DSL for rasterHueRotateTransition.
The opacity at which the image will be drawn. Default value: 1. Value range: 0, 1
Set the RasterOpacity property transition options
DSL for rasterOpacityTransition.
The resampling/interpolation method to use for overscaling, also known as texture magnification filter Default value: "linear".
Increase or reduce the saturation of the image. Default value: 0. Value range: -1, 1
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
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.
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 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.
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.
Сolor theme override for rasterColor.