RasterLayerDsl

interface RasterLayerDsl

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

Link copied to clipboard
abstract fun maxZoom(maxZoom: Double): RasterLayer

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

Link copied to clipboard
abstract fun minZoom(minZoom: Double): RasterLayer

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

Link copied to clipboard
abstract fun rasterArrayBand(rasterArrayBand: String): RasterLayer

Displayed band of raster array source layer. Defaults to the first band if not set.

Link copied to clipboard
abstract fun rasterBrightnessMax(rasterBrightnessMax: Expression): RasterLayer
abstract fun rasterBrightnessMax(rasterBrightnessMax: Double = 1.0): RasterLayer

Increase or reduce the brightness of the image. The value is the maximum brightness. Default value: 1. Value range: 0, 1

Link copied to clipboard

Increase or reduce the brightness of the image. The value is the maximum brightness. Default value: 1. Value range: 0, 1

Link copied to clipboard
abstract fun rasterBrightnessMin(rasterBrightnessMin: Expression): RasterLayer
abstract fun rasterBrightnessMin(rasterBrightnessMin: Double = 0.0): RasterLayer

Increase or reduce the brightness of the image. The value is the minimum brightness. Default value: 0. Value range: 0, 1

Link copied to clipboard

Increase or reduce the brightness of the image. The value is the minimum brightness. Default value: 0. Value range: 0, 1

Link copied to clipboard
abstract fun rasterColor(rasterColor: Expression): RasterLayer

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.

Link copied to clipboard
abstract fun rasterColorMix(rasterColorMix: Expression): RasterLayer
abstract fun rasterColorMix(rasterColorMix: List<Double> = listOf(0.2126, 0.7152, 0.0722, 0.0)): RasterLayer

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.

Link copied to clipboard

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.

Link copied to clipboard
abstract fun rasterColorRange(rasterColorRange: Expression): RasterLayer
abstract fun rasterColorRange(rasterColorRange: List<Double>): RasterLayer

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. For rasterarray sources, if raster-color-range is unspecified, the source's stated data range is used.

Link copied to clipboard

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. For rasterarray sources, if raster-color-range is unspecified, the source's stated data range is used.

Link copied to clipboard
abstract fun rasterContrast(rasterContrast: Expression): RasterLayer
abstract fun rasterContrast(rasterContrast: Double = 0.0): RasterLayer

Increase or reduce the contrast of the image. Default value: 0. Value range: -1, 1

Link copied to clipboard

Increase or reduce the contrast of the image. Default value: 0. Value range: -1, 1

Link copied to clipboard
abstract fun rasterElevation(rasterElevation: Double = 0.0): RasterLayer

Specifies an uniform elevation from the ground, in meters. Default value: 0. Minimum value: 0.

Link copied to clipboard

Specifies an uniform elevation from the ground, in meters. Default value: 0. Minimum value: 0.

Link copied to clipboard
abstract fun rasterEmissiveStrength(rasterEmissiveStrength: Expression): RasterLayer
abstract fun rasterEmissiveStrength(rasterEmissiveStrength: Double = 0.0): RasterLayer

Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.

Link copied to clipboard

Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.

Link copied to clipboard
abstract fun rasterFadeDuration(rasterFadeDuration: Expression): RasterLayer
abstract fun rasterFadeDuration(rasterFadeDuration: Double = 300.0): RasterLayer

Fade duration when a new tile is added. Default value: 300. Minimum value: 0.

Link copied to clipboard
abstract fun rasterHueRotate(rasterHueRotate: Expression): RasterLayer
abstract fun rasterHueRotate(rasterHueRotate: Double = 0.0): RasterLayer

Rotates hues around the color wheel. Default value: 0.

Link copied to clipboard

Rotates hues around the color wheel. Default value: 0.

Link copied to clipboard
abstract fun rasterOpacity(rasterOpacity: Expression): RasterLayer
abstract fun rasterOpacity(rasterOpacity: Double = 1.0): RasterLayer

The opacity at which the image will be drawn. Default value: 1. Value range: 0, 1

Link copied to clipboard

The opacity at which the image will be drawn. Default value: 1. Value range: 0, 1

Link copied to clipboard
abstract fun rasterResampling(rasterResampling: Expression): RasterLayer
abstract fun rasterResampling(rasterResampling: RasterResampling = RasterResampling.LINEAR): RasterLayer

The resampling/interpolation method to use for overscaling, also known as texture magnification filter Default value: "linear".

Link copied to clipboard
abstract fun rasterSaturation(rasterSaturation: Expression): RasterLayer
abstract fun rasterSaturation(rasterSaturation: Double = 0.0): RasterLayer

Increase or reduce the saturation of the image. Default value: 0. Value range: -1, 1

Link copied to clipboard

Increase or reduce the saturation of the image. Default value: 0. Value range: -1, 1

Link copied to clipboard
abstract fun slot(slot: String): RasterLayer

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.

Link copied to clipboard
abstract fun sourceLayer(sourceLayer: String): RasterLayer

A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.

Link copied to clipboard
abstract fun visibility(visibility: Expression): RasterLayer
abstract fun visibility(visibility: Visibility): RasterLayer

Whether this layer is displayed.

Inheritors

Link copied to clipboard