更新历史轨迹

master
tangwenkang 2023-12-04 20:24:11 +08:00
parent 22be268e77
commit 64722e587b
2 changed files with 18 additions and 12 deletions

View File

@ -321,7 +321,6 @@ export default {
this.isShow = false
this.isList = true
this.initMap()
alert(this.vinId)
this.startAnimation()
},
/*刷新*/

View File

@ -134,17 +134,24 @@ export default {
})
},
startAnimation () {
setTimeout(()=>{
AMap.plugin('AMap.MoveAnimation', () => {
console.log('开始回放')
this.marker.moveAlong(this.lineArr, {
//
duration: this.duration,//
// JSAPI2.0 moveAlong
autoRotation: true,
});
})
},2000)
// 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: 200,//
// JSAPI2.0 moveAlong
autoRotation: true,
});
},
},
}