Skip to main content

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

ParameterTypeDescription
specVisualizationSpecThe base spec (without the boundary group).
groupBoundaryGroupThe boundary group to append.

Returns

VisualizationSpec

A new spec with the group's sources and layers appended.