More data fixes

This commit is contained in:
ztimson 2019-07-09 12:46:02 -04:00
parent 33e7b6781e
commit 22456caf4c
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export class GeolocationService implements OnDestroy {
default: default:
snackBar.open('Geolocation experienced an unknown error', null, {duration: 3000, horizontalPosition: 'right', panelClass: ['bg-warning', 'text-white']}); snackBar.open('Geolocation experienced an unknown error', null, {duration: 3000, horizontalPosition: 'right', panelClass: ['bg-warning', 'text-white']});
} }
}); }, {enableHighAccuracy: true});
} else { } else {
snackBar.open('Geolocation is not supported', null, {duration: 3000, horizontalPosition: 'right', panelClass: ['bg-warning', 'text-white']}); snackBar.open('Geolocation is not supported', null, {duration: 3000, horizontalPosition: 'right', panelClass: ['bg-warning', 'text-white']});
} }

View File

@ -39,7 +39,7 @@
<br> <br>
Altitude: Altitude:
<span *ngIf="!position.altitude" class="text-danger">No Altitude</span> <span *ngIf="!position.altitude" class="text-danger">No Altitude</span>
<span *ngIf="position.altitude">{{position.altitude}} m</span> <span *ngIf="position.altitude">{{position.altitude | number : '0.0'}} m</span>
<br> <br>
Speed: Speed:
<span *ngIf="!position.speed" class="text-danger">No Speed</span> <span *ngIf="!position.speed" class="text-danger">No Speed</span>