Sample Paint
class SamplePaint(var expression: SampleExpression = SampleExpression.NUMBER, var channel: List<ColorBand> = listOf(ColorBand.red), var quality: DataQuality = DataQuality.exact, var interpolation: InterpolationMode = InterpolationMode.BICUBIC, var smoothing: Float = 0.0f, var offset: Float = 0.0f, var drawRange: ClosedRange<Double>? = null, colorScale: ColorScaleOptions = ColorScaleOptions(), var multiband: Boolean = false, var meld: Boolean = true, var encodedScalarNormMax: Double? = null, var eventEmitter: LayerEventEmitter? = null) : Paint, ColorSampling
Constructors
Link copied to clipboard
constructor(expression: SampleExpression = SampleExpression.NUMBER, channel: List<ColorBand> = listOf(ColorBand.red), quality: DataQuality = DataQuality.exact, interpolation: InterpolationMode = InterpolationMode.BICUBIC, smoothing: Float = 0.0f, offset: Float = 0.0f, drawRange: ClosedRange<Double>? = null, colorScale: ColorScaleOptions = ColorScaleOptions(), multiband: Boolean = false, meld: Boolean = true, encodedScalarNormMax: Double? = null, eventEmitter: LayerEventEmitter? = null)
Properties
Link copied to clipboard
Color scale configuration to use when rendering encoded data.
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
Shader normalization max for encoded-grid sidecar symbols; when null, colorScale.range end is used.
Link copied to clipboard
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
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.