VectorStyle

class VectorStyle(var expression: SampleExpression = SampleExpression.NUMBER, var channel: List<ColorBand> = listOf(ColorBand.red), var quality: DataQuality = DataQuality.normal, var interpolation: InterpolationMode = InterpolationMode.BICUBIC, var smoothing: Float = 0.0f, var offset: Float = 0.0f, var drawRange: ClosedRange<Double>? = null, var colorScale: ColorScaleOptions = ColorScaleOptions(), var opacity: Float = 1.0f, var density: ParticleDensity = ParticleDensity.NORMAL, var count: Int = 0, var size: Float = 2.0f, var trailsFadeFactor: Double = ParticleTrailLength.NORMAL) : RasterStyle, ColorSampling

Constructors

Link copied to clipboard
constructor(expression: SampleExpression = SampleExpression.NUMBER, channel: List<ColorBand> = listOf(ColorBand.red), quality: DataQuality = DataQuality.normal, interpolation: InterpolationMode = InterpolationMode.BICUBIC, smoothing: Float = 0.0f, offset: Float = 0.0f, drawRange: ClosedRange<Double>? = null, colorScale: ColorScaleOptions = ColorScaleOptions(), opacity: Float = 1.0f, density: ParticleDensity = ParticleDensity.NORMAL, count: Int = 0, size: Float = 2.0f, trailsFadeFactor: Double = ParticleTrailLength.NORMAL)

Properties

Link copied to clipboard
open override var channel: List<ColorBand>

Which of 3 rgb channels from the source image to use. Default is ColorBand.red

Link copied to clipboard
open override var colorScale: ColorScaleOptions

Color scale configuration to use when rendering encoded data.

Link copied to clipboard
var count: Int
Link copied to clipboard
Link copied to clipboard
open override var drawRange: ClosedRange<Double>?

Limits the data range that should be rendered from the sampled data. If not provided, then the full data range provided by the associated data source will be rendered by default.

Link copied to clipboard
open override var expression: SampleExpression

Determines how data should be sampled from the encoded data texture.

Link copied to clipboard
open override var interpolation: InterpolationMode

Type of interpolation to perform on the data.

Link copied to clipboard
Link copied to clipboard
open override var offset: Float

Normalized amount to shift the interpolated sample values from 0 to 1. This is typically used for expression operations like diff where interpolated values can be negative and you need to start values half way (0.5) between the colorscale.range.

Link copied to clipboard
open override var opacity: Float

The opacity of the particles, from 0f to 1f. Default is 1f.

Link copied to clipboard
open override var quality: DataQuality

Controls the data resolution that gets requested by the layer's data source and rendered to the map. Data will be interpolated when rendering to the map to ensure low resolution/quality data is still smooth.

Link copied to clipboard
var size: Float
Link copied to clipboard
open override var smoothing: Float

Amount of smoothing to apply on the data from 0 (no smoothing) to 1 (full smoothing). Increasing this value is useful for low resolution data sets or when higher detail is not desired or needed.

Link copied to clipboard

How fast the particles travel. Default is 1f.