Skip to content

spatial-monorepo


spatial-monorepo / core/src / setBuildingRevealChoreography

Function: setBuildingRevealChoreography()

setBuildingRevealChoreography(map, id, enabled, options?): void

Defined in: packages/core/src/layers/BuildingExtrusion.ts:128

Issue #481 — Toggles the building-reveal choreography on/off for an already-added layer via setPaintProperty only — never removes/re-adds the layer or its source. This is the independent runtime toggle the acceptance criteria require: flipping enabled swaps between the static paint values (pre-#481 behavior) and the zoom-driven crossfade, in place.

No-op if the layer does not exist yet (mirrors setIMDFWallsFillTheme's contract in IMDFFloorLayer.ts).

Parameters

map

Map$1 | null | undefined

id

string

enabled

boolean

options?

Pick`<BuildingExtrusionOptions, "heightProperty" | "baseHeightProperty" | "opacity" | "numLevels">={}`

Returns

void

Released under commercial licensing.