store local navigator pathfinder manifest
This commit is contained in:
parent
1e185e1607
commit
f69e6dc76f
2 changed files with 7 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -8,8 +8,9 @@ timetables/*.json
|
|||
.VSCodeCounter
|
||||
.timetracker
|
||||
web/analytics/data.json
|
||||
web/map/data/navigator.json
|
||||
DEBUG
|
||||
schedule_client.py
|
||||
config.py
|
||||
.env
|
||||
.venv
|
||||
.venv
|
||||
|
|
|
|||
|
|
@ -309,7 +309,11 @@ function manifestPoints(floorId) {
|
|||
if (!manifest) return []
|
||||
const floors = manifest.floors || manifest
|
||||
const value = floors?.[String(floorId)] || floors?.[Number(floorId)]
|
||||
return Array.isArray(value) ? value : (Array.isArray(value?.points) ? value.points : [])
|
||||
if (Array.isArray(value)) return value
|
||||
if (Array.isArray(value?.points)) return value.points
|
||||
if (Array.isArray(value?.positions)) return value.positions
|
||||
if (Array.isArray(value?.pathfinder_data?.positions)) return value.pathfinder_data.positions
|
||||
return []
|
||||
}
|
||||
|
||||
function segmentFloor(segment) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue