更新历史轨迹

master
tangwenkang 2023-12-04 19:05:16 +08:00
parent 89ce3bb6e1
commit c7c8c405b1
1 changed files with 3 additions and 2 deletions

View File

@ -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({