liuyg
2021-12-31 e40ee62d3e9b71ffe3432d32a53a00c4097b5708
src/components/mobileCortrolButtom/index.vue
@@ -36,20 +36,20 @@
      tabTable: [],
      ccData: [
        {
          lnt: 115.87071885,
          lnt: 115.86471885,
          lat: 28.74382592,
        },
        {
          lnt: 115.86711312,
          lat: 28.74615701,
          lat: 28.74315701,
        },
        {
          lnt: 115.86972136,
          lat: 28.74609846,
          lnt: 115.86872136,
          lat: 28.74009846,
        },
        {
          lnt: 115.86983129,
          lat: 28.741337,
          lnt: 115.87413129,
          lat: 28.743337,
        },
      ],
    };
@@ -69,14 +69,15 @@
    },
    handleCommand(command) {
      let that = this;
      let position = [+command.lnt + 0.01197, +command.lat - 0.0021];
      console.log(command, "定位");
      // 定位
      this.$store.commit("MSETCC_SETCC", {
        lntLat: [command.lnt, command.lat],
      });
      // this.$store.commit("MSETCC_SETCC", {
      //   lntLat: position,
      // });
      this.$store.dispatch("mapFlyTo", {
        //飞入
        lntLat: [command.lnt, command.lat, 500],
        lntLat: [...position, 500],
        heading: 0,
        pitch: -45,
        roll: 0,