基于北京SDK的方案预演功能
surprise
2024-04-24 2891e19c690853fa6542502bcd230b6130e95810
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!--
 * @Description: 
 * @Author: TT
 * @Date: 2023-02-27 11:30:56
 * @LastEditTime: 2023-03-06 15:19:16
 * @LastEditors: TT
-->
<template>
  <div class="MapBox">
    <div class="banner"
         :class="{ leftMap: screenFlag }">
      <div id="cesiumContainer"></div>
    </div>
    <div class="leftMap"
         v-if="screenFlag">
      <div id="cesiumContainer2"></div>
    </div>
  </div>
</template>
 
<script lang="ts" setup>
import { ref, onMounted, onBeforeUnmount, nextTick, watch } from "vue";
import store from "@/store";
import mapView from "../assets/js/mapView.js";
 
const data = ref([]);
onMounted(() => {
  mapView.init();
});
onBeforeUnmount(() => {});
</script>
<style scoped lang="less">
.MapBox {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  .banner {
    width: 100%;
    height: 100vh;
    background-size: cover;
  }
  .leftMap {
    width: 50%;
    height: 100vh;
    background-size: cover;
    #cesiumContainer {
      width: 50%;
      position: absolute;
    }
    #cesiumContainer2 {
      width: 50%;
      position: absolute;
    }
  }
  .boxContent {
    padding: 10px;
    top: 2%;
    left: 1%;
    background: url("../assets/img/menu/listbg.png") no-repeat;
    background-size: 100% 100%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 40;
  }
  .closeLeftMenu {
    color: #fff;
    height: 20px;
    width: 20px;
 
    cursor: pointer;
    transition: 1s;
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
  }
 
  .closeLeftMenu:hover {
    cursor: pointer;
    transform: rotateZ(90deg);
  }
  .popContent {
    width: 100%;
    color: white;
    font-family: Source Han Sans CN;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .popContent1 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: white;
    font-family: Source Han Sans CN;
    font-size: 16px;
    align-items: center;
  }
  #cesiumContainer2 {
    height: 100vh;
  }
  hr {
    height: 0px;
  }
}
</style>