GridLayerPaint

data class GridLayerPaint(var opacity: Float = 1.0f, var fill: FillPaint? = defaultGridFill(), var stroke: StrokePaint? = null, var icon: IconPaint = IconPaint(), var text: List<TextPaint> = emptyList(), var grid: GridPaint = GridPaint(spacing = 20.0), var sample: SamplePaint? = null, var symbol: SymbolPlacementPaint = SymbolPlacementPaint(allowOverlap = StyleValue.Constant(true))) : VectorLayerPaint

Paint for com.xweather.mapsgl.layers.spec.GridLayerDescriptor: sampled encoded values plus instanced icons (arrows/barbs) at a grid spacing.

Constructors

Link copied to clipboard
constructor(opacity: Float = 1.0f, fill: FillPaint? = defaultGridFill(), stroke: StrokePaint? = null, icon: IconPaint = IconPaint(), text: List<TextPaint> = emptyList(), grid: GridPaint = GridPaint(spacing = 20.0), sample: SamplePaint? = null, symbol: SymbolPlacementPaint = SymbolPlacementPaint(allowOverlap = StyleValue.Constant(true)))

Properties

Link copied to clipboard
Link copied to clipboard

Gridded / sidecar icon grid: step in world pixels at zoom 0 (world width = 512px). Consumed by com.xweather.mapsgl.sources.EncodedGridVectorTileSource; not emitted in Mapbox Style JSON.

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

Encoded-field color mapping for gridded/sidecar symbols (SamplePaint.colorScale, optional SamplePaint.encodedScalarNormMax). Not emitted in Mapbox Style JSON.

Link copied to clipboard
Link copied to clipboard

Shared symbol placement (Apple GridLayerPaint.symbol); defaults sync from icon.placement.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun asStyleJSON(id: String, source: String, sourceLayer: String?): StyleJSON
Link copied to clipboard

Timeline blend factor for sampling / draw. Returns 0 when sampleMeldEnabled is false (JS: sampleMeld() ? progress : 0).

Link copied to clipboard

JS paint.sample.meld — whether this layer's SamplePaint blends across timeline intervals. Defaults to true when the paint has no sample block.

Link copied to clipboard