更新历史轨迹
parent
89ce3bb6e1
commit
c7c8c405b1
|
@ -53,6 +53,8 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
doDo(recordCar){
|
doDo(recordCar){
|
||||||
|
this.initMap()
|
||||||
|
this.startAnimation()
|
||||||
this.recordCar.vin = recordCar.vin
|
this.recordCar.vin = recordCar.vin
|
||||||
this.recordCar.startTime = recordCar.startTime
|
this.recordCar.startTime = recordCar.startTime
|
||||||
this.recordCar.endTime = recordCar.endTime
|
this.recordCar.endTime = recordCar.endTime
|
||||||
|
@ -66,9 +68,8 @@ export default {
|
||||||
parseFloat(obj.latitude.replace(/"/g, ""))
|
parseFloat(obj.latitude.replace(/"/g, ""))
|
||||||
]);
|
]);
|
||||||
this.lineArr = [coordinates]
|
this.lineArr = [coordinates]
|
||||||
|
console.log(this.lineArr)
|
||||||
})
|
})
|
||||||
this.initMap()
|
|
||||||
this.startAnimation()
|
|
||||||
},
|
},
|
||||||
initMap() {
|
initMap() {
|
||||||
AMapLoader.load({
|
AMapLoader.load({
|
||||||
|
|
Loading…
Reference in New Issue