Sample Style
class SampleStyle(var expression: SampleExpression = SampleExpression.NUMBER, var channels: 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 multiband: Boolean = false, var meld: Boolean = true) : RasterStyle, ColorSampling
Sample style.
Constructors
Link copied to clipboard
constructor(expression: SampleExpression = SampleExpression.NUMBER, channels: 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, multiband: Boolean = false, meld: Boolean = true)
Create SampleStyle
Properties
Link copied to clipboard
Link copied to clipboard
A ColorScale maps numeric values to a color palette. The scale can then be used to generate a set of colors for a given range of values and options.
Link copied to clipboard
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
Determines how data should be sampled from the encoded data texture.
Link copied to clipboard
Type of interpolation to perform on the data.
Link copied to clipboard
Link copied to clipboard
ntrols 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.