完毕2
parent
eb3a7babbb
commit
e197dc6788
|
@ -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)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -145,13 +145,6 @@ export default {
|
|||
});
|
||||
})
|
||||
},2000)
|
||||
// this.marker.moveAlong(this.lineArr, {
|
||||
// // 每一段的时长
|
||||
// duration: 200,//可根据实际采集时间间隔设置
|
||||
// // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置
|
||||
// autoRotation: true,
|
||||
// });
|
||||
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue