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