@@ -290,7 +290,7 @@ const props = withDefaults(defineProps<{
|
||||
showControls: true,
|
||||
showPoi: false,
|
||||
targetFocus: null,
|
||||
touchGestureMode: 'orbit',
|
||||
touchGestureMode: 'pan',
|
||||
targetFocusDistanceFactor: 0.36,
|
||||
routePreview: null,
|
||||
showRoute: false,
|
||||
@@ -497,10 +497,14 @@ const logThreeMapDiagnostic = (
|
||||
const syncControlInteractionOptions = () => {
|
||||
if (!controls) return
|
||||
|
||||
controls.enableRotate = false
|
||||
controls.enablePan = true
|
||||
controls.screenSpacePanning = true
|
||||
controls.panSpeed = 0.85
|
||||
controls.touches.ONE = props.touchGestureMode === 'pan' ? THREE.TOUCH.PAN : THREE.TOUCH.ROTATE
|
||||
controls.mouseButtons.LEFT = THREE.MOUSE.PAN
|
||||
controls.mouseButtons.MIDDLE = THREE.MOUSE.DOLLY
|
||||
controls.mouseButtons.RIGHT = THREE.MOUSE.PAN
|
||||
controls.touches.ONE = THREE.TOUCH.PAN
|
||||
controls.touches.TWO = THREE.TOUCH.DOLLY_PAN
|
||||
}
|
||||
|
||||
|
||||
@@ -388,7 +388,7 @@ const props = withDefaults(defineProps<{
|
||||
normalizeFloorId: (labelOrId: string) => labelOrId,
|
||||
dimmed: false,
|
||||
targetFocusRequest: null,
|
||||
touchGestureMode: 'orbit',
|
||||
touchGestureMode: 'pan',
|
||||
targetFocusDistanceFactor: 0.36,
|
||||
routePreview: null,
|
||||
showRoute: false,
|
||||
|
||||
@@ -591,10 +591,10 @@ const indoorLayerMode = computed<LayerDisplayMode>(() => (
|
||||
indoorView.value === 'multi' ? 'multi' : 'single'
|
||||
))
|
||||
const showIndoorGestureHint = ref(true)
|
||||
const indoorGestureHintText = ref('单指旋转 · 双指缩放/平移 · 点选标记查看位置')
|
||||
const indoorGestureHintText = ref('单指平移 · 双指缩放/平移 · 点选标记查看位置')
|
||||
let indoorGestureHintTimer: ReturnType<typeof setTimeout> | null = null
|
||||
|
||||
const showIndoorHint = (text = '单指旋转 · 双指缩放/平移 · 点选标记查看位置', durationMs = 5200) => {
|
||||
const showIndoorHint = (text = '单指平移 · 双指缩放/平移 · 点选标记查看位置', durationMs = 5200) => {
|
||||
indoorGestureHintText.value = text
|
||||
showIndoorGestureHint.value = is3DMode.value
|
||||
|
||||
@@ -923,7 +923,7 @@ const handleFloorChange = (floorId: string) => {
|
||||
indoorView.value = 'floor'
|
||||
selectedGuidePoi.value = null
|
||||
isPoiCardCollapsed.value = false
|
||||
showIndoorHint(`已切换到 ${getGuideFloorLabel(floorId)},单指旋转、双指可平移`, 3200)
|
||||
showIndoorHint(`已切换到 ${getGuideFloorLabel(floorId)},单指平移、双指可缩放`, 3200)
|
||||
console.log('楼层渲染完成:', floorId)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user