From e197dc6788a06a369c2227c59315d5007e03d1ea Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Tue, 5 Dec 2023 09:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=AF=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/car.vue | 4 +++- src/views/vehicle/record.vue | 7 ------- 2 files changed, 3 insertions(+), 8 deletions(-) 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, - // }); - }, }, }