月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-08-28 6f2fb62fe828bdd74b0cd59b9cbdf6c83559c1b4
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
<template>
  <div
    id="cesiumContainer"
    class="cesiumContainer"
  >
 
  </div>
</template>
 
<script lang="ts" setup>
import InitMap from "@/assets/js/Map/index.js";
import {
  ref,
  onMounted,
  onBeforeUnmount,
  reactive,
  defineProps,
  defineEmits,
  nextTick,
} from "vue";
import store from "@/store";
let map;
var viewer;
const init = () => {
  viewer = InitMap.Viewer;
  map = InitMap.sgworld;
  //   store.state.restLayer = true;
};
onMounted(() => {
  InitMap.init3DMap();
  init();
  window.setLayer();
  window.setMouseMove(true);
});
</script>
 
<style  lang="less" scoped>
.cesiumContainer {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
</style>