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