diff --git a/src/views/vehicle/car.vue b/src/views/vehicle/car.vue index 3f57429..78b9aea 100644 --- a/src/views/vehicle/car.vue +++ b/src/views/vehicle/car.vue @@ -321,7 +321,7 @@ export default { realTime(this.vin).then(res=>{ if(res.code !== 200){ - this.$message.error("注册实际轨迹事件失败!") + this.$message.error("注册实时轨迹事件失败!") return } }) @@ -458,6 +458,7 @@ export default { }) }, startAnimation () { + setTimeout(()=>{ AMap.plugin('AMap.MoveAnimation', () => { console.log('开始回放') this.marker.moveAlong(this.lineArr, { @@ -467,6 +468,7 @@ export default { autoRotation: true, }); }) + },2000) }, } } diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index 243ee2d..171a99f 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -145,13 +145,6 @@ export default { }); }) },2000) - // this.marker.moveAlong(this.lineArr, { - // // 每一段的时长 - // duration: 200,//可根据实际采集时间间隔设置 - // // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置 - // autoRotation: true, - // }); - }, }, }