diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index f434aa5..711d618 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -133,8 +133,8 @@ export default { }) }, startAnimation () { - // setTimeout(()=>{ - // AMap.plugin('AMap.MoveAnimation', () => { + setTimeout(()=>{ + AMap.plugin('AMap.MoveAnimation', () => { console.log('开始回放') this.marker.moveAlong(this.lineArr, { // 每一段的时长 @@ -142,8 +142,8 @@ export default { // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置 autoRotation: true, }); - // }) - // },2000) + }) + },2000) }, }, }