@@ -63,7 +63,8 @@ import type {
|
||||
GuideRouteResult
|
||||
} from '@/domain/museum'
|
||||
import {
|
||||
compareFloorsTopToBottom
|
||||
compareFloorsTopToBottom,
|
||||
getFloorSortLevel
|
||||
} from '@/domain/guideFloor'
|
||||
import {
|
||||
guideModelLoadManager,
|
||||
@@ -3139,7 +3140,8 @@ const resolveFloorIdFromRequest = (requestedFloorId?: string | null) => {
|
||||
}
|
||||
|
||||
const isGroundEntryFloor = (floor: FloorIndexItem) => (
|
||||
getFloorMatchKeys(floor).some((key) => {
|
||||
getFloorSortLevel(floor) === 1
|
||||
|| getFloorMatchKeys(floor).some((key) => {
|
||||
const normalizedKey = normalizeModelMatchKey(key)
|
||||
return normalizedKey === 'l1' || normalizedKey === '1f'
|
||||
})
|
||||
|
||||
@@ -345,6 +345,7 @@ import type {
|
||||
MuseumHall,
|
||||
MuseumPoi
|
||||
} from '@/domain/museum'
|
||||
import { getFloorSortLevel } from '@/domain/guideFloor'
|
||||
|
||||
type GuideIndoorView = 'overview' | 'floor' | 'multi'
|
||||
type LayerDisplayMode = 'single' | 'multi'
|
||||
@@ -583,7 +584,8 @@ const guideFloors = ref<MuseumFloor[]>([])
|
||||
const normalizeGuideFloorId = (labelOrId: string) => guideUseCase.normalizeFloorId(labelOrId)
|
||||
const getPreferredInitialGuideFloorId = (floors: MuseumFloor[]) => (
|
||||
floors.find((floor) => (
|
||||
normalizeGuideFloorId(floor.id) === 'L1'
|
||||
getFloorSortLevel(floor) === 1
|
||||
|| normalizeGuideFloorId(floor.id) === 'L1'
|
||||
|| normalizeGuideFloorId(floor.label) === 'L1'
|
||||
))?.id
|
||||
|| floors[0]?.id
|
||||
|
||||
Reference in New Issue
Block a user