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