master
tangwenkang 2023-12-05 09:50:51 +08:00
parent eb3a7babbb
commit e197dc6788
2 changed files with 3 additions and 8 deletions

View File

@ -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)
},
}
}

View File

@ -145,13 +145,6 @@ export default {
});
})
},2000)
// this.marker.moveAlong(this.lineArr, {
// //
// duration: 200,//
// // JSAPI2.0 moveAlong
// autoRotation: true,
// });
},
},
}