fuchengshen
2022-07-09 3a25c05b5ab837714f30469cdcb1e2a77d8d7f6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
  <mars-pannel :visible="true" right="10" top="10">
    <div class="f-mb">
      <a-space>
        <span>漫游控制:</span>
        <mars-button @click="startFly">开始漫游</mars-button>
        <mars-button @click="stopFly">停止漫游</mars-button>
      </a-space>
    </div>
 
    <a-space>
      <span>室内视角:</span>
      <mars-button @click="centerAtDX1">教室</mars-button>
      <mars-button @click="centerAtDX2">走廊</mars-button>
      <mars-button @click="centerAtDX3">楼梯间</mars-button>
    </a-space>
  </mars-pannel>
</template>
 
<script setup lang="ts">
import * as mapWork from "./map.js"
 
const startFly = () => {
  mapWork.startFly()
}
const stopFly = () => {
  mapWork.stopFly()
}
const centerAtDX1 = () => {
  mapWork.centerAtDX1()
}
const centerAtDX2 = () => {
  mapWork.centerAtDX2()
}
const centerAtDX3 = () => {
  mapWork.centerAtDX3()
}
</script>