RasterLayerStyleProps
Properties
visibility?
optionalvisibility:Value<Enum<VisibilityEnum,VisibilityEnumValues>, []>
Whether this layer is displayed.
rasterOpacity?
optionalrasterOpacity:Value<number, ["zoom"]>
The opacity at which the image will be drawn.
rasterOpacityTransition?
optionalrasterOpacityTransition:Transition
The transition affecting any changes to this layer’s rasterOpacity property.
rasterHueRotate?
optionalrasterHueRotate:Value<number, ["zoom"]>
Rotates hues around the color wheel.
rasterHueRotateTransition?
optionalrasterHueRotateTransition:Transition
The transition affecting any changes to this layer’s rasterHueRotate property.
rasterBrightnessMin?
optionalrasterBrightnessMin:Value<number, ["zoom"]>
Increase or reduce the brightness of the image. The value is the minimum brightness.
rasterBrightnessMinTransition?
optionalrasterBrightnessMinTransition:Transition
The transition affecting any changes to this layer’s rasterBrightnessMin property.
rasterBrightnessMax?
optionalrasterBrightnessMax:Value<number, ["zoom"]>
Increase or reduce the brightness of the image. The value is the maximum brightness.
rasterBrightnessMaxTransition?
optionalrasterBrightnessMaxTransition:Transition
The transition affecting any changes to this layer’s rasterBrightnessMax property.
rasterSaturation?
optionalrasterSaturation:Value<number, ["zoom"]>
Increase or reduce the saturation of the image.
rasterSaturationTransition?
optionalrasterSaturationTransition:Transition
The transition affecting any changes to this layer’s rasterSaturation property.
rasterContrast?
optionalrasterContrast:Value<number, ["zoom"]>
Increase or reduce the contrast of the image. s
rasterContrastTransition?
optionalrasterContrastTransition:Transition
The transition affecting any changes to this layer’s rasterContrast property.
rasterResampling?
optionalrasterResampling:Value<Enum<RasterResamplingEnum,RasterResamplingEnumValues>, ["zoom"]>
The resampling/interpolation method to use for overscaling, also known as texture magnification filter
rasterFadeDuration?
optionalrasterFadeDuration:Value<number, ["zoom"]>
Fade duration when a new tile is added.
rasterColor?
optionalrasterColor:Value<string, ["raster-value"]>
Defines a color map by which to colorize a raster layer, parameterized by the ["rasterValue"] expression and evaluated at 256 uniformly spaced steps over the range specified by rasterColorRange.
rasterColorMix?
optionalrasterColorMix:Value<number[], ["zoom"]>
When rasterColor 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.
Requires
rasterColor
rasterColorMixTransition?
optionalrasterColorMixTransition:Transition
The transition affecting any changes to this layer’s rasterColorMix property.
rasterColorRange?
optionalrasterColorRange:Value<number[], ["zoom"]>
When rasterColor is active, specifies the range over which rasterColor is tabulated. Units correspond to the computed raster value via rasterColorMix.
Requires
rasterColor
rasterColorRangeTransition?
optionalrasterColorRangeTransition:Transition
The transition affecting any changes to this layer’s rasterColorRange property.