更新历史轨迹
parent
22be268e77
commit
64722e587b
|
@ -321,7 +321,6 @@ export default {
|
|||
this.isShow = false
|
||||
this.isList = true
|
||||
this.initMap()
|
||||
alert(this.vinId)
|
||||
this.startAnimation()
|
||||
},
|
||||
/*刷新*/
|
||||
|
|
|
@ -134,17 +134,24 @@ export default {
|
|||
})
|
||||
},
|
||||
startAnimation () {
|
||||
setTimeout(()=>{
|
||||
AMap.plugin('AMap.MoveAnimation', () => {
|
||||
console.log('开始回放')
|
||||
// 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: this.duration,//可根据实际采集时间间隔设置
|
||||
duration: 200,//可根据实际采集时间间隔设置
|
||||
// JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置
|
||||
autoRotation: true,
|
||||
});
|
||||
})
|
||||
},2000)
|
||||
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue