月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-06-01 9b3193643a8f585d96da086bd715a155c24cfbeb
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
<template>
  <div class="body_box">
    <div
      id="cesiumContainer"
      style="width: 100%; height: 100%; position: absolute;"
    ></div>
    <menus></menus>
    <bottom-btn></bottom-btn>
    <top-btn></top-btn>
  </div>
</template>
 
<script lang="ts" setup>
import {
  ref,
  onMounted,
  onBeforeUnmount,
  reactive,
  defineProps,
  defineEmits,
} from "vue";
 
import menus from "@/components/menus.vue";
import bottomBtn from "@/components/bottomBtn.vue";
import topBtn from "@/components/topBtn.vue";
import InitMap from "@/assets/js/Map/index.js";
let map;
var viewer;
const init = () => {
  viewer = InitMap.Viewer;
  map = InitMap.sgworld;
};
 
onMounted(() => {
  InitMap.init3DMap();
  init();
});
</script>
<style lang="less" scoped>
.body_box {
  width: 100%;
  height: 100%;
  position: absolute;
}
</style>