OptionalcolorBorder/outline color: a hex string or a MapLibre expression (e.g. ['get', 'borderColor']).
Overrides a feature's color property, fill.color,
fill.palette and the top-level
GeometriesModuleConfig.color for the border.
OptionallayerA partial MapLibre line layer merged onto the border, under the curated fields above: they
take precedence over the same paint properties set here.
Use layers.line, which takes precedence over
the curated fields, as every module's layers entry does.
OptionalopacityBorder opacity, 0 (transparent) to 1 (opaque). Also accepts a MapLibre expression.
OptionalwidthBorder width in pixels. Also accepts a MapLibre expression
(e.g. ['case', ['get', 'selected'], 4, 2]).
Line/border configuration for geometries — the outline color, opacity and width.
Remarks
The curated fields cover the common cases; layers.line takes any other line property (
line-gap-width,line-cap,line-dasharray, …).Example