From 7e6b37afd1295c71bca1de595426330aff88420d Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期一, 08 一月 2024 09:55:53 +0800
Subject: [PATCH] 代码提交

---
 src/components/right/right-bottom.vue |   55 ++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 36 insertions(+), 19 deletions(-)

diff --git a/src/components/right/right-bottom.vue b/src/components/right/right-bottom.vue
index d6534fa..da4a65e 100644
--- a/src/components/right/right-bottom.vue
+++ b/src/components/right/right-bottom.vue
@@ -36,7 +36,7 @@
           popper-class="item_tooltip"
         >
           <div class="legend-bg" @click="fovViewer">
-            <img class="dwImg" src="@/assets/img/new/location.png" />
+            <img class="dwImg" src="@/assets/img/new/mapSplit.png" />
           </div>
         </el-tooltip>
       </div>  
@@ -303,6 +303,7 @@
 let _index = 0;
 import rightLegend from "./right-legend";
 import Bus from "../tools/Bus";
+import { mapState, mapMutations } from "vuex";
 export default {
   name: "right-bottom",
   components: {
@@ -339,7 +340,11 @@
       isActive: true,
     };
   },
+  computed: {
+    ...mapState(["viewer1Show", "isLand", "yqfk", "qyEchartsShow"]),
+  },
   mounted() {
+ 
     //鍏抽棴鎴戠殑璧勬簮寮圭獥
     Bus.$on("closeLegendPop", (data) => {
       if (data) {
@@ -351,6 +356,7 @@
     Bus.$off("closeLegendPop");
   },
   methods: {
+    ...mapMutations(["setViewer1Show", "setqyEchartsShow"]),
     // 鐩告満鍙傛暟
     getcamera() {
       let p = sgworld.Navigate.getCameraInfo();
@@ -405,27 +411,38 @@
       }
     },
     fovViewer() {
-      this.isWideAngle = !this.isWideAngle;
-      if (this.isWideAngle) {
-        this.wideAngle = window.Viewer.camera.frustum.fov;
-        window.Viewer.camera.frustum.fov = 2;
-      } else {
-        window.Viewer.camera.frustum.fov = this.wideAngle;
-      }
+      this.setViewer1Show(!this.viewer1Show);
+      // this.isWideAngle = !this.isWideAngle;
+      // if (this.isWideAngle) {
+      //   this.wideAngle = window.Viewer.camera.frustum.fov;
+      //   window.Viewer.camera.frustum.fov = 2;
+      // } else {
+      //   window.Viewer.camera.frustum.fov = this.wideAngle;
+      // }
     },
     flyBack() {
       sgworld.Navigate.flyToPointsInterest({
-        destination: new Cesium.Cartesian3.fromDegrees(
-          this.camera.position[0],
-          this.camera.position[1],
-          this.camera.position[2]
-        ),
-        orientation: {
-          heading: Cesium.Math.toRadians(this.camera.orientation.heading),
-          pitch: Cesium.Math.toRadians(this.camera.orientation.pitch),
-          roll: Cesium.Math.toRadians(this.camera.orientation.roll),
-        },
-      });
+            destination: {
+              "x": -2739326.5749705257,
+              "y": 4699172.613682586,
+              "z": 3363231.4711036524
+            }, orientation: new Cesium.HeadingPitchRoll(0.20701194045518534, -1.2462306958113518, 0.00000112321019862804),
+            duration: 7, //椋炶鏃堕棿8s
+          });
+
+
+      // sgworld.Navigate.flyToPointsInterest({
+      //   destination: new Cesium.Cartesian3.fromDegrees(
+      //     this.camera.position[0],
+      //     this.camera.position[1],
+      //     this.camera.position[2]
+      //   ),
+      //   orientation: {
+      //     heading: Cesium.Math.toRadians(this.camera.orientation.heading),
+      //     pitch: Cesium.Math.toRadians(this.camera.orientation.pitch),
+      //     roll: Cesium.Math.toRadians(this.camera.orientation.roll),
+      //   },
+      // });
     },
     fullScreen() {
       this.isActive = !this.isActive;

--
Gitblit v1.9.3