+
liuyg
2022-01-04 e7f0b51b2e0e7a9afeb1835fdafe29c7077d0dfb
src/components/mobilemap/index.vue
@@ -367,9 +367,9 @@
          e.position,
          [e.wgs84Position.lng, e.wgs84Position.lat],
          {
            name: e.layer._bid,
            address: e.layer.type,
            introduce: e.layer._id,
            name: e.overlay.attr.name,
            address: e.layer._id,
            introduce: e.overlay.attr.id,
            data: e,
          }
        );
@@ -543,6 +543,7 @@
                },
              });
            } else {
              console.log(123456);
              that.$store.dispatch("mapFlyTo", {
                lntLat: [+int[0] + 0.012, int[1], int[2]],
                // 指向
@@ -559,6 +560,7 @@
            ? doit([114.03928791, 27.62954732, 360.0])
            : // : doit([116.39038494750986, 39.902393222208644, 330.0]);
              doit("建模");
          // doit(114.03925, 27.6265, 360.0);
        };
        // startPoint(1);
      }
@@ -627,7 +629,30 @@
      if (that.dimension == "2.5D") {
        that.$store.commit("MSET_DIMENSION", "2.5D"); //切换2.5D设置
      } else if (that.dimension == "3D") {
        that.$store.commit("MSET_DIMENSION", "3D"); //切换3D设置
        setTimeout((res) => {
          that.$store.dispatch("mapFlyTo", {
            lntLat: [111.25036579, 34.83767277, 11443175.85],
            heading: 0,
            pitch: -90,
            roll: 0,
            noOpen: true,
            fn: function () {
              // viewer.flyTo(tileset);
              // viewer.flyTo(provider);
              //飞入起始点
              // that.$store.dispatch("mapFlyTo", {
              //   lntLat: [115.87186406, 28.74449337, 1200],
              //   heading: 0,
              //   pitch: -45,
              //   roll: 0,
              //   noOpen: true,
              // });
              // startPoint();
              that.$store.commit("MSET_DIMENSION", "3D"); //切换3D设置
            },
          });
        }, 2000);
      }
      if (false) {
        //镜头改变示例