fangyuan
2022-12-15 7c40e28b5287efad97e4a158522b620811febba4
src/components/map/index.vue
@@ -12,6 +12,7 @@
    };
  },
  created() {
    debugger
    // if (this.point) {
    //   this._point = this.point;
    // }
@@ -22,10 +23,11 @@
  methods: {
    locationMap() {
      const that = this;
      debugger
      setTimeout(() => {
        console.log("_zoom---", that._zoom);
        console.log("_point---", JSON.stringify(that._point));
        that.map.setZoomAndCenter(that._zoom, [that._point.x, that._point.y]);
        // console.log("_zoom---", that.zoom);
        // console.log("_point---", JSON.stringify(that.point));
        that.map.setZoomAndCenter(that._zoom, [that.point.x, that.point.y]);
        if (that.mark) {
          // 创建一个 Marker 实例:
          var marker = new AMap.Marker({