|
@@ -160,11 +160,17 @@
|
|
|
this.polyEditor.close()
|
|
|
},
|
|
|
clearPoly() {
|
|
|
- this.$emit('clearPolygonMap')
|
|
|
- // this.map.clearMap();
|
|
|
- this.map.destroy()
|
|
|
- this.reset()
|
|
|
- this.init()
|
|
|
+ console.log(this.polyEditor,'this.polyEditor');
|
|
|
+ // this.polyEditor.close()
|
|
|
+ this.map.clearMap();
|
|
|
+ this.polyEditor.destroy();
|
|
|
+ this.polyEditor.open();
|
|
|
+ this.$emit('clearPolygonMap');
|
|
|
+ // this.map.add(this.polygons);
|
|
|
+
|
|
|
+ // this.map.destroy()
|
|
|
+ // this.reset()
|
|
|
+ // this.init()
|
|
|
},
|
|
|
reset() {
|
|
|
this.polyEditor = null
|