更新定位的的经纬度精度

This commit is contained in:
weipengfei 2023-11-06 09:38:59 +08:00
parent 160fae671e
commit ed7686a99c
2 changed files with 4 additions and 4 deletions

View File

@ -779,8 +779,8 @@
let latitude, longitude;
latitude = res.latitude.toString();
longitude = res.longitude.toString();
this.latitude = res.latitude
this.longitude = res.longitude
this.latitude = res.latitude.toFixed(6);
this.longitude = res.longitude.toFixed(6);
getGeocoder({
lat: latitude,
long: longitude

View File

@ -605,8 +605,8 @@
let latitude, longitude;
latitude = res.latitude.toString();
longitude = res.longitude.toString();
this.latitude = latitude;
this.longitude = longitude;
this.latitude = res.latitude.toFixed(6);
this.longitude = res.longitude.toFixed(6);
getGeocoder({
lat: latitude,
long: longitude