| | |
| | | }; |
| | | }, |
| | | created() { |
| | | debugger |
| | | // if (this.point) { |
| | | // this._point = this.point; |
| | | // } |
| | |
| | | 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({ |
| | |
| | | highFlag: true, |
| | | echarts: null, |
| | | pointName: null, |
| | | point: null, |
| | | point: { x: "119.27179890", y: "28.59027084" }, |
| | | mark: null, |
| | | zoom: null, |
| | | zoom: 15, |
| | | } |
| | | }, |
| | | methods: { |