OptionalcolorThe border colour, as a hex string or a MapLibre expression such as ['get', 'borderColor'].
Overrides a feature's color property, fill.color,
fill.palette and the top-level
GeometriesModuleConfig.color for the border.
OptionalopacityBorder opacity, 0 (transparent) to 1 (opaque). Also accepts a MapLibre expression.
OptionalwidthBorder width in pixels. Also accepts a MapLibre expression, such as
['case', ['get', 'selected'], 4, 2].
Line/border configuration for geometries, with the outline colour, opacity and width.
Remarks
The curated fields cover the common cases, and layers.line takes any other line property (
line-gap-width,line-cap,line-dasharray, …).Example