Skip to content

spatial-monorepo


spatial-monorepo / core/src / updateWallTopEdgeLayer

Function: updateWallTopEdgeLayer()

updateWallTopEdgeLayer(map, levelId, wallBands, opts?): void

Defined in: packages/core/src/layers/wall-top-edges.ts:156

Updates a level's top-edge PathLayer data (and optionally style) in place via handle.updateLayer — never removes/re-adds the layer. Call this whenever the level's wall-band FeatureCollection changes (e.g. alongside updateIMDFData) so the accent line stays in sync without a full deck.gl layer recreation (Issue #481 acceptance criterion).

Parameters

map

Map$1 | null | undefined

levelId

string

wallBands

FeatureCollection`<Polygon, WallBandProperties>\|null\|undefined`

opts?

WallTopEdgeLayerOptions

Returns

void

Released under commercial licensing.