-
Notifications
You must be signed in to change notification settings - Fork 41
API Reference
Asynchronously attempts to obtain the current location of the device.
options - A PositionOptions object
A promise, resolved with a Position object or rejected with a PositionError object.
Asynchronously begins a watch operation which monitors the position of the device and update $geolocation.position
every time this position changes. If a watch operation is already in progress, this method does nothing.
options - A PositionOptions object
-
$geolocation.position.changed
- fired when the user's position have been updated -
$geolocation.position.error
- fired when getting the position resulted in an error
Cancels the current watch operation. If there is no current watch operation this method does nothing.
This property is kept up to date if there is a watch operation in progress. If the last update was successful then it is populated with the most recently available Position. If the last update was not successfull $geolocation.position.error
is populated with the relevant PositionError object.