|
|
|
@ -59,9 +59,9 @@ |
|
|
|
|
console.log(res); |
|
|
|
|
console.log('纬度:' + res.latitude); |
|
|
|
|
console.log('经度:' + res.longitude); |
|
|
|
|
let lng = res.longitude.toFixed(2); |
|
|
|
|
let lat = res.latitude.toFixed(2); |
|
|
|
|
this_.arrs.push({ latitude: res.latitude, longitude: res.longitude }); |
|
|
|
|
let lng = res.longitude.toFixed(3); |
|
|
|
|
let lat = res.latitude.toFixed(3); |
|
|
|
|
this_.arrs.push({ latitude: lat, longitude: lng }); |
|
|
|
|
console.log(this_.arrs,'1' ) |
|
|
|
|
this_.locationss[0].points = this_.arrs; |
|
|
|
|
this_.locationss = [...this_.locationss]; |
|
|
|
|