Commit 8e30a0ca by jack

修复bug

1 parent 03291bc1
...@@ -605,6 +605,7 @@ export default { ...@@ -605,6 +605,7 @@ export default {
}, 500); }, 500);
}, },
drawPolygon(path) { drawPolygon(path) {
console.log('path')
EventBus.$emit("uiMap.fence.drawPolygon", { EventBus.$emit("uiMap.fence.drawPolygon", {
path, path,
isEdit: false, isEdit: false,
......
...@@ -106,7 +106,7 @@ const fence = { ...@@ -106,7 +106,7 @@ const fence = {
}, },
createFenceCircle(data){ createFenceCircle(data){
const MAP = mapService.map; const MAP = mapService.map;
this.destroy(); //this.destroy();
this.circle = new AMap.Circle({ this.circle = new AMap.Circle({
map: MAP, map: MAP,
...@@ -176,7 +176,7 @@ const fence = { ...@@ -176,7 +176,7 @@ const fence = {
drawPolygon(){ drawPolygon(){
const MAP = mapService.map; const MAP = mapService.map;
const self = this; const self = this;
this.destroy(); //this.destroy();
if(this.polygonPath.length){ if(this.polygonPath.length){
self.polygon = new AMap.Polygon({ self.polygon = new AMap.Polygon({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!