Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / buildOccupancyGridForLevel

Function: buildOccupancyGridForLevel()

buildOccupancyGridForLevel(archive, levelId, opts?): OccupancyGrid

Defined in: packages/wayfinding/src/occupancy-grid.ts:623

Filters an IMDFArchive to one level's units + openings, then builds its occupancy grid. Also filters archive.fixtures/archive.kiosks to the same level and passes them through as opts.fixtures (issue #477) unless the caller already supplied opts.fixtures explicitly.

Parameters

archive

IMDFArchive

levelId

string

opts?

OccupancyGridOptions = {}

Returns

OccupancyGrid

Released under commercial licensing.