月球大数据地理空间分析展示平台-【前端】-月球2期前端
surprise
2023-11-03 8259d48200ce9477ecbe16e8426161493211b593
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
<template>
  <div class="MapViewBox">
    <div id="cesiumContainer">
      
    </div>
  </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.setMouseMove(true);
});
</script>
 
<style  lang="less" scoped>
.MapViewBox {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
}
.ol-mouse-position{
  display: none !important;
}
</style>