|
@@ -429,11 +429,13 @@ export default {
|
|
|
this.setpoint()
|
|
|
},
|
|
|
close(){
|
|
|
+ this.location.destroy()
|
|
|
this.open=false
|
|
|
this.start=[]
|
|
|
this.end=[]
|
|
|
this.flag = null
|
|
|
- this.location.destroy()
|
|
|
+ // console.log("this.location=", this.location);
|
|
|
+ // alert(this.location.destroy())
|
|
|
},
|
|
|
//投影转坐标
|
|
|
MercatorToWGS84(coords) {
|
|
@@ -483,6 +485,7 @@ export default {
|
|
|
toolRoute.route(this.start, this.end).then(data => {
|
|
|
toolRoute.drawPath(data.routs)
|
|
|
})
|
|
|
+ this.location = toolRoute;
|
|
|
}
|
|
|
},
|
|
|
handleSizeChange(val) {
|