Function: customizeBoundaryGroup()
customizeBoundaryGroup(
group,overrides):BoundaryGroup
Defined in: spec/boundaryGroup.ts:169
Returns a new BoundaryGroup with overridden paint properties on every
line layer. The original group is not mutated.
Only lineColor and lineWidth are supported — non-line layers are
returned unchanged.
Parameters
| Parameter | Type | Description |
|---|---|---|
group | BoundaryGroup | The boundary group to customize. |
overrides | BoundaryPaintOverrides | Partial paint properties to apply. |
Returns
A new BoundaryGroup with the overridden paint applied to line layers.
Example
const thickStates = customizeBoundaryGroup(statesGroup, {
lineColor: '#ef4444',
lineWidth: 3,
});