Fill Paint
Polygon fill color, optional pattern, opacity, and sort key. Used by FillLayerPaint and as the fill block on CircleLayerPaint / SymbolLayerPaint.
Constructors
Properties
Fill color (fill-color); may be a constant or a data-driven StyleValue.Expression.
Whether color has been assigned after this paint was constructed, i.e. by the host app rather than by the built-in layer configuration.
Fill alpha in [0.0, 1.0] (fill-opacity).
Optional fill-pattern image id (fill-pattern).
Ignored when sortKey is null. Default matches Mapbox ascending.
Feature property key used for draw order (Apple/JS fill.sortKey). String form is a dotted property path (e.g. "period.range.minTimestamp"); numeric StyleValue forms emit Mapbox fill-sort-key on the Style JSON path.
Functions
Custom copy function to replicate data class behavior. Use this to create a new instance with specific property changes.