更新历史轨迹列表数据6
parent
02e54ad426
commit
8fc0c622a4
|
@ -65,8 +65,9 @@ export default {
|
||||||
historyMap(this.recordCar).then(res=>{
|
historyMap(this.recordCar).then(res=>{
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
res.data.forEach(item=>{
|
res.data.forEach(item=>{
|
||||||
this.arr[0] = item.longitude.valueOf()
|
this.arr[0] = item.longitude
|
||||||
this.arr[1] = item.latitude.valueOf()
|
this.arr[1] = item.latitude
|
||||||
|
this.arr.map(coord => parseFloat(coord))
|
||||||
this.lineArr.push(this.arr)
|
this.lineArr.push(this.arr)
|
||||||
console.log(this.lineArr)
|
console.log(this.lineArr)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue