更新历史轨迹

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.isShow = false
this.isList = true this.isList = true
this.initMap() this.initMap()
alert(this.vinId)
this.startAnimation() this.startAnimation()
}, },
/*刷新*/ /*刷新*/

View File

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