RasterParticleLayerDsl

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 filter(filter: Expression): RasterParticleLayer

A filter is a property at the layer level that determines which features should be rendered in a style layer.

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

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): RasterParticleLayer

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

Link copied to clipboard

Displayed band of raster array source layer

Link copied to clipboard

Defines a color map by which to colorize a raster particle layer, parameterized by the ["raster-particle-speed"] expression and evaluated at 256 uniformly spaced steps over the range specified by raster-particle-max-speed.

Link copied to clipboard
abstract fun rasterParticleCount(rasterParticleCount: Long = 512): RasterParticleLayer

Defines the amount of particles per tile. Default value: 512. Minimum value: 1.

Link copied to clipboard
abstract fun rasterParticleFadeOpacityFactor(rasterParticleFadeOpacityFactor: Double = 0.98): RasterParticleLayer

Defines defines the opacity coefficient applied to the faded particles in each frame. In practice, this property controls the length of the particle tail. Default value: 0.98. Value range: 0, 1

Defines defines the opacity coefficient applied to the faded particles in each frame. In practice, this property controls the length of the particle tail. Default value: 0.98. Value range: 0, 1

Link copied to clipboard
abstract fun rasterParticleMaxSpeed(rasterParticleMaxSpeed: Double = 1.0): RasterParticleLayer

Defines the maximum speed for particles. Velocities with magnitudes equal to or exceeding this value are clamped to the max value. Default value: 1. Minimum value: 1.

Link copied to clipboard
abstract fun rasterParticleResetRateFactor(rasterParticleResetRateFactor: Double = 0.8): RasterParticleLayer

Defines a coefficient for a time period at which particles will restart at a random position, to avoid degeneration (empty areas without particles). Default value: 0.8. Value range: 0, 1

Link copied to clipboard
abstract fun rasterParticleSpeedFactor(rasterParticleSpeedFactor: Double = 0.2): RasterParticleLayer

Defines a coefficient for the speed of particles’ motion. Default value: 0.2. Value range: 0, 1

Link copied to clipboard

Defines a coefficient for the speed of particles’ motion. Default value: 0.2. Value range: 0, 1

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

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): RasterParticleLayer

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): RasterParticleLayer
abstract fun visibility(visibility: Visibility): RasterParticleLayer

Whether this layer is displayed.

Inheritors

Link copied to clipboard