调整更新的内容

master
tangwenkang 2023-12-06 16:49:57 +08:00
parent fc0f625c26
commit ba6cbe6fdb
1 changed files with 6 additions and 6 deletions

View File

@ -67,7 +67,7 @@ export default {
parseFloat(obj.latitude.replace(/"/g, "")) parseFloat(obj.latitude.replace(/"/g, ""))
]); ]);
this.lineArr = coordinates this.lineArr = coordinates
console.log("历史轨迹经纬:"+this.lineArr) console.log(this.lineArr)
}) })
}, },
initMap() { initMap() {
@ -93,7 +93,7 @@ export default {
dragEnable: true, // true dragEnable: true, // true
doubleClickZoom: true, // true doubleClickZoom: true, // true
zoom: 13, // zoom: 13, //
center: this.lineArr[0], // center: this.lineArr[0], //
// mapStyle: "amap://styles/darkblue", // // mapStyle: "amap://styles/darkblue", //
}) })
@ -133,8 +133,8 @@ 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, {
// //
@ -142,8 +142,8 @@ export default {
// JSAPI2.0 moveAlong // JSAPI2.0 moveAlong
autoRotation: true, autoRotation: true,
}); });
}) // })
},2000) // },2000)
}, },
}, },
} }