diff --git a/src/app/geolocation/geolocation.service.ts b/src/app/geolocation/geolocation.service.ts index 2ea1f3d..c4f0cb5 100644 --- a/src/app/geolocation/geolocation.service.ts +++ b/src/app/geolocation/geolocation.service.ts @@ -26,7 +26,7 @@ export class GeolocationService implements OnDestroy { default: snackBar.open('Geolocation experienced an unknown error', null, {duration: 3000, horizontalPosition: 'right', panelClass: ['bg-warning', 'text-white']}); } - }); + }, {enableHighAccuracy: true}); } else { snackBar.open('Geolocation is not supported', null, {duration: 3000, horizontalPosition: 'right', panelClass: ['bg-warning', 'text-white']}); } diff --git a/src/app/map/map.component.html b/src/app/map/map.component.html index e02f9ac..52b8399 100644 --- a/src/app/map/map.component.html +++ b/src/app/map/map.component.html @@ -39,7 +39,7 @@
Altitude: No Altitude - {{position.altitude}} m + {{position.altitude | number : '0.0'}} m
Speed: No Speed