You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
$geolocation.position.changed - fired when the user's position have been updated
$geolocation.position.error - fired when getting the position resulted in an error
$geolocation.clearWatch()
Cancels the current watch operation. If there is no current watch operation this method does nothing.
Properties
$geolocation.position
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.