LineLayerPaint

data class LineLayerPaint(var opacity: Float = 1.0f, var stroke: StrokePaint) : VectorLayerPaint

Paint model for vector line layers.

LineLayerPaint wraps StrokePaint and serializes to Mapbox-style line-* properties in asStyleJSON, including width, color, join/cap, and miter limit. This paint is used by com.xweather.mapsgl.layers.spec.LineLayerDescriptor and is also read by GLES stencil mask ribbon generation when a line layer is used as a mask source.

Constructors

Link copied to clipboard
constructor(opacity: Float = 1.0f, stroke: StrokePaint)

Properties

Link copied to clipboard
open override var opacity: Float

Layer-level opacity multiplier applied by the renderer.

Link copied to clipboard

Stroke configuration (color, width, joins/caps, miter).

Functions

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

Converts this paint to a style JSON payload for a Mapbox line style layer.

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.