Upgraded custom-webpack and typescript.
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
2021-06-16 09:15:53 +02:00
parent 22209cfaf6
commit 8d3c098f4e
9 changed files with 111 additions and 2078 deletions

View File

@@ -9,14 +9,14 @@ import { Observer, Observable,BehaviorSubject } from 'rxjs';
@Injectable()
export class GeolocationService {
private positionObserver$:BehaviorSubject<Position> = new BehaviorSubject<Position>(null);
private positionObserver$:BehaviorSubject<GeolocationPosition> = new BehaviorSubject<GeolocationPosition>(null);
constructor() {
navigator.geolocation.watchPosition(
(position: Position) => {
(position: GeolocationPosition) => {
this.positionObserver$.next(position);
},
(error: PositionError) => {
(error: GeolocationPositionError) => {
console.debug('Geolocation service: ' + error.message);
},
{
@@ -28,7 +28,7 @@ export class GeolocationService {
}
getCurrentPosition(): Observable<Position> {
getCurrentPosition(): Observable<GeolocationPosition> {
return this.positionObserver$;
}
}