|
|
@@ -5,10 +5,7 @@
|
|
|
-->
|
|
|
<template>
|
|
|
<div>
|
|
|
- <!-- <div class="toolBox" :style="{
|
|
|
- right: `${windowRight}px`
|
|
|
- }"> -->
|
|
|
- <div class="toolBox">
|
|
|
+ <div class="toolBox" :style="mapStore.sideMenu? `right:${windowRight}px`:`right:20px`">
|
|
|
<div @click="setClass(0)" @mouseover="getTip('初始范围')" @mouseout="closetip" :class="bkclick[0] ? 'divclick' : ''">
|
|
|
<img src="../../assets/images/toolBox/reset.png" />
|
|
|
</div>
|
|
|
@@ -340,12 +337,12 @@ export default defineComponent({
|
|
|
|
|
|
} else {
|
|
|
if (navigation) navigation.style.right = '-10px';
|
|
|
- if (navigation) tool.style.right = '20px';
|
|
|
- if (navigation) changeMap.style.right = '20px';
|
|
|
- if (navigation) legendBox.style.right = '20px';
|
|
|
- if (navigation) tuli.style.right = '20px';
|
|
|
- if (navigation) classLegend.style.left = '20px';
|
|
|
- if (navigation) classLegend2.style.left = '20px';
|
|
|
+ // if (navigation) tool.style.right = '20px';
|
|
|
+ // if (navigation) changeMap.style.right = '20px';
|
|
|
+ // if (navigation) legendBox.style.right = '20px';
|
|
|
+ // if (navigation) tuli.style.right = '20px';
|
|
|
+ // if (navigation) classLegend.style.left = '20px';
|
|
|
+ // if (navigation) classLegend2.style.left = '20px';
|
|
|
|
|
|
}
|
|
|
};
|
|
|
@@ -466,8 +463,9 @@ export default defineComponent({
|
|
|
methods: {
|
|
|
flyHome() {
|
|
|
const tempData = {
|
|
|
- destination: { x: 93.8, y: 26.02060211195423, z: 666896.88999354467 },
|
|
|
- // destination: { x: 94.44066857601297, y: 26.00104492171595, z: 666896.88999354467 },
|
|
|
+ destination: { x: 94.78654373385515, y: 28.346531418458763, z: 219814.67543127885 },
|
|
|
+ // destination: { x: 93.8, y: 26.02060211195423, z: 666896.88999354467 },
|
|
|
+
|
|
|
orientation: { heading: 6.283185307179586, pitch: -1.0182023771170687, roll: 6.283185307179586 },
|
|
|
};
|
|
|
map.flyTo(tempData, 1);
|
|
|
@@ -537,23 +535,23 @@ export default defineComponent({
|
|
|
this.infoShow = true;
|
|
|
if (this.mapStore.sideMenu) {
|
|
|
if (i == '初始范围') {
|
|
|
- this.px = ' right: 500px;top: 540px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 540px;`;
|
|
|
} else if (i == '图层控制') {
|
|
|
- this.px = ' right: 500px;top: 570px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 570px;`;
|
|
|
} else if (i == '底图切换') {
|
|
|
- this.px = ' right: 500px;top: 600px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 600px;`;
|
|
|
} else if (i == '距离测量') {
|
|
|
- this.px = ' right: 500px;top: 630px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 630px;`;
|
|
|
} else if (i == '面积测量') {
|
|
|
- this.px = ' right: 500px;top: 660px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 660px;`;
|
|
|
} else if (i == '截图') {
|
|
|
- this.px = ' right: 500px;top: 690px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 690px;`;
|
|
|
} else if (i == '收藏') {
|
|
|
- this.px = ' right: 500px;top: 710px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 710px;`;
|
|
|
} else if (i == '面板收起') {
|
|
|
- this.px = ' right: 500px;top: 750px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 750px;`;
|
|
|
} else if (i == '重要测站监测信息') {
|
|
|
- this.px = ' right: 500px;top: 730px;';
|
|
|
+ this.px = ` right: ${this.windowRight+50}px;top: 730px;`;
|
|
|
}
|
|
|
} else {
|
|
|
if (i == '初始范围') {
|