Skip to main content

fromGeolocationPosition

Types

function fromGeolocationPosition(
options?: PositionOptions
): IObservable<IFromGeolocationPositionObservableNotifications>

Example

Prints the user's position


const subscribe = fromGeolocationPosition();

subscribe(notificationObserver({
next: (position: GeolocationPosition) => {
console.log(position);
},
}));