surprise
2024-01-02 b2fdf4f25251229adbe9a6963cb35fb7fc868172
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,13 +411,14 @@
      }
    },
    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({