| | |
| | | }; |
| | | }, |
| | | 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]); |
| | |
| | | |
| | | // 将创建的点标记添加到已有的地图实例: |
| | | that.map.add(marker); |
| | | marker.on('click',function(e){ |
| | | console.log('666') |
| | | that.$emit('fatherMethod') |
| | | // that.$parent.fatherMethod(); |
| | | |
| | | }) |
| | | } |
| | | }, 1000); |
| | | |
| | | }, |
| | | }, |
| | | mounted() { |