spatial-monorepo / editor/src / addWallExtrusionLayer
Function: addWallExtrusionLayer()
addWallExtrusionLayer(
map,features,wallColor?):void
Defined in: packages/editor/src/layers/wallExtrusion.ts:177
Adds the wall extrusion source + fill-extrusion layer to the map. Safe to call when the source already exists — falls through to updateWallExtrusionLayer.
Issue #480 — wallColor defaults to the same theme wallFill token the core imdf-walls-<levelId> layer uses, and the paint block itself is built via the shared buildWallExtrusionPaint helper (color/height/base/opacity), so a hand-drawn wall renders identically to an IMDF-loaded one next to it.
Parameters
map
Map$1
features
Feature`<Geometry, GeoJsonProperties>`[]
wallColor?
string = DEFAULT_EDITOR_WALL_COLOR
Returns
void
