| src/components/leafletDraw.vue | ●●●●● patch | view | raw | blame | history | |
| src/components/revampDraw.vue | ●●●●● patch | view | raw | blame | history |
src/components/leafletDraw.vue
@@ -315,6 +315,8 @@ window.parent.postMessage(area,"*") this.map.flyToBounds(this.rectangleLayer.getBounds()); }) }, src/components/revampDraw.vue
@@ -160,6 +160,8 @@ // 添加顶点 console.log(e, '添加顶点') }) // this.map.flyToBounds(this.rectangleLayer.getBounds()); }, addPolygon (position) { @@ -461,6 +463,8 @@ let area = this.$turf.area(this.$turf.polygon([arr])) window.parent.postMessage(area,"*") this.map.flyToBounds(this.rectangleLayer.getBounds()); }) },