diff --git a/src/views/vehicle/car.vue b/src/views/vehicle/car.vue index 1be1236..e709992 100644 --- a/src/views/vehicle/car.vue +++ b/src/views/vehicle/car.vue @@ -321,7 +321,6 @@ export default { this.isShow = false this.isList = true this.initMap() - alert(this.vinId) this.startAnimation() }, /*刷新*/ diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index e889289..7643f09 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -134,17 +134,24 @@ export default { }) }, startAnimation () { - setTimeout(()=>{ - AMap.plugin('AMap.MoveAnimation', () => { - console.log('开始回放') - this.marker.moveAlong(this.lineArr, { - // 每一段的时长 - duration: this.duration,//可根据实际采集时间间隔设置 - // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置 - autoRotation: true, - }); - }) - },2000) + // setTimeout(()=>{ + // AMap.plugin('AMap.MoveAnimation', () => { + // console.log('开始回放') + // this.marker.moveAlong(this.lineArr, { + // // 每一段的时长 + // duration: this.duration,//可根据实际采集时间间隔设置 + // // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置 + // autoRotation: true, + // }); + // }) + // },2000) + this.marker.moveAlong(this.lineArr, { + // 每一段的时长 + duration: 200,//可根据实际采集时间间隔设置 + // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置 + autoRotation: true, + }); + }, }, }