FillLayerPaint

data class FillLayerPaint(var opacity: Float = 1.0f, var fill: FillPaint, var stroke: StrokePaint? = StrokePaint(thickness = StyleValue.Constant(0.0))) : VectorLayerPaint

Paint for com.xweather.mapsgl.layers.spec.FillLayerDescriptor: polygon fill plus optional outline stroke.

Constructors

Link copied to clipboard
constructor(opacity: Float = 1.0f, fill: FillPaint, stroke: StrokePaint? = StrokePaint(thickness = StyleValue.Constant(0.0)))

Types

Link copied to clipboard
object Companion

Properties

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

Optional outline (Apple FillLayerPaint.stroke). Default is a zero-thickness stroke that still emits a thin companion outline for prior Android parity; set to null to skip the outline entirely.

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
fun strokeOutlineStyleJSON(id: String, source: String, sourceLayer: String?): StyleJSON?

Mapbox line style for polygon boundaries (companion to the fill layer). Returns null when stroke is unset.

Link copied to clipboard

Whether a companion Mapbox line outline layer should be registered.