SymbolLayerPaint

data class SymbolLayerPaint(var opacity: Float = 1.0f, var fill: FillPaint? = null, var stroke: StrokePaint? = null, var icon: IconPaint = IconPaint(), var text: List<TextPaint> = emptyList(), var rank: SymbolRank? = null, var pitchWithMap: Boolean = true, var rotateWithMap: Boolean = true) : VectorLayerPaint

Paint for com.xweather.mapsgl.layers.spec.SymbolLayerDescriptor: icon, optional text list, fill/stroke, rank.

Constructors

Link copied to clipboard
constructor(opacity: Float = 1.0f, fill: FillPaint? = null, stroke: StrokePaint? = null, icon: IconPaint = IconPaint(), text: List<TextPaint> = emptyList(), rank: SymbolRank? = null, pitchWithMap: Boolean = true, rotateWithMap: Boolean = true)

Properties

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

When true (default, JS parity), icon and text instances tilt into the map plane with camera pitch, geometrically re-projected like any other map content. When false, they stay flat and screen-upright regardless of pitch. Shared between icon and text (JS paint.symbol.pitchWithMap).

Link copied to clipboard

Optional rank for GLES symbol ordering (JS symbol.rank).

Link copied to clipboard

When true (default, JS parity), icon and text instances rotate to track the map's current bearing. When false, they stay oriented to screen-north regardless of bearing. Shared between icon and text (JS paint.symbol.rotateWithMap). Independent of pitchWithMap — all four combinations are meaningful (e.g. tilts with pitch but stays north-up in rotation).

Link copied to clipboard
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.