From 22456caf4cc931a35ac69a0a20873a1ae3a01a0b Mon Sep 17 00:00:00 2001 From: ztimson Date: Tue, 9 Jul 2019 12:46:02 -0400 Subject: [PATCH] More data fixes --- src/app/geolocation/geolocation.service.ts | 2 +- src/app/map/map.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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