调整更新的内容

master
tangwenkang 2023-12-06 16:44:52 +08:00
parent f37e065b83
commit fc0f625c26
1 changed files with 3 additions and 4 deletions

View File

@ -60,7 +60,6 @@ export default {
this.recordCar.endTime = recordCar.endTime
historyMap(this.recordCar).then(res=>{
this.recordCarList = res.data; // data
console.log(this.recordCarList)
this.currentObject = {}
this.startDisplay(); //
let coordinates = res.data.map(obj => [
@ -68,7 +67,7 @@ export default {
parseFloat(obj.latitude.replace(/"/g, ""))
]);
this.lineArr = coordinates
console.log(this.lineArr)
console.log("历史轨迹经纬:"+this.lineArr)
})
},
initMap() {
@ -134,7 +133,7 @@ export default {
})
},
startAnimation () {
// setTimeout(()=>{
setTimeout(()=>{
AMap.plugin('AMap.MoveAnimation', () => {
console.log('开始回放')
this.marker.moveAlong(this.lineArr, {
@ -144,7 +143,7 @@ export default {
autoRotation: true,
});
})
// },2000)
},2000)
},
},
}