More data fixes
This commit is contained in:
parent
33e7b6781e
commit
22456caf4c
@ -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']});
|
||||
}
|
||||
|
@ -39,7 +39,7 @@
|
||||
<br>
|
||||
Altitude:
|
||||
<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>
|
||||
Speed:
|
||||
<span *ngIf="!position.speed" class="text-danger">No Speed</span>
|
||||
|
Loading…
Reference in New Issue
Block a user