FillLayerPaint

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

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

Default thickness 0 — thin companion line outline. Set StrokePaint.thickness 0 for explicit width.

Functions

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

Mapbox line style for polygon boundaries (companion to the fill layer).

Link copied to clipboard

Fill outlines always use the companion line layer so width can be controlled.