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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
  <mars-pannel :visible="true" right="10" top="10" width="202">
    <a-collapse v-model:activeKey="activeKey">
      <!-- 自定义切换图标 -->
      <template #expandIcon>
        <mars-icon icon="down-c" class="icon-vertical-a" />
      </template>
      <a-collapse-panel key="1" header="S3M示例">
        <div class="basis-button-contain">
          <mars-button @click="showMaxNiaochaoDemo">人工建模(奥体公园)</mars-button>
          <mars-button @click="showMaxCBDDemo">人工建模(CBD)</mars-button>
          <mars-button @click="showMaxPipeDemo">人工建模(地下管网)</mars-button>
          <mars-button @click="showBIMQiaoDemo">BIM(桥梁)</mars-button>
          <mars-button @click="showQxSuofeiyaDemo">倾斜摄影(哈尔滨索菲亚)</mars-button>
          <mars-button @click="showQxSrsbDemo">倾斜摄影(萨尔茨堡)</mars-button>
        </div>
      </a-collapse-panel>
 
      <a-collapse-panel key="2" header="开源仓库">
        <mars-button href="https://gitee.com/marsgis/mars3d-link-supermap" target="_blank">与超图结合开源仓库</mars-button>
      </a-collapse-panel>
    </a-collapse>
  </mars-pannel>
</template>
 
<script setup lang="ts">
import { reactive, ref } from "vue"
import * as mapWork from "./map.js"
 
const activeKey = ref(["1", "2", "3"])
 
const showMaxNiaochaoDemo = () => {
  mapWork.showMaxNiaochaoDemo()
}
const showMaxCBDDemo = () => {
  mapWork.showMaxCBDDemo()
}
const showBIMQiaoDemo = () => {
  mapWork.showBIMQiaoDemo()
}
const showMaxPipeDemo = () => {
  mapWork.showMaxPipeDemo()
}
const showQxSuofeiyaDemo = () => {
  mapWork.showQxSuofeiyaDemo()
}
const showQxSrsbDemo = () => {
  mapWork.showQxSrsbDemo()
}
</script>
<style scoped lang="less">
.mars-button {
  margin-right: 8px;
  margin-bottom: 8px;
}
</style>