spatial-monorepo / core/src / setupFloorUnloader
Function: setupFloorUnloader()
setupFloorUnloader(
map,options): (activeOrdinal) =>void&object
Defined in: packages/core/src/utils/FloorUnloader.ts:60
Parameters
map
Map$1 | null | undefined
MapLibre map instance
options
delayMs and getLayerIds
Returns
(activeOrdinal) => void & object
A function that should be called each time the active floor ordinal changes. The returned function also exposes a dispose() method that clears every pending unload timer — call it on unmount so no timer outlives the caller.
