Function: appendBoundaryGroup()
appendBoundaryGroup(
spec,group):VisualizationSpec
Defined in: spec/boundaryGroup.ts:100
Merges a BoundaryGroup into an existing VisualizationSpec.
Appends the group's sources and layers to the spec's arrays. Returns a new spec object — the original is not mutated.
Parameters
| Parameter | Type | Description |
|---|---|---|
spec | VisualizationSpec | The base spec (without the boundary group). |
group | BoundaryGroup | The boundary group to append. |
Returns
A new spec with the group's sources and layers appended.