Static
clearStatic
getGet the current user position.
Options for the geolocation request.
Optional
enableHighAccuracy?: booleanUse GPS support if possible (increase accuracy).
Optional
requestNewPosition?: booleanRequests a new position. If set to false, the last saved position (if not older than 5 minutes) is returned.
Optional
roundResultTo?: numberRound the result of latitude and longitude to given count.
Optional
supressErrorMessage?: booleanSupresses error message when position request ran in error or timeout.
Static
watchWatch the current user position. And returns watcher ID.
callback function that takes a IHFLocation object as an input parameter.
callback function that takes an error object as an input parameter.
Options for the geolocation request.
Optional
audioFeedback?: booleanEnable audio feedback on every successful fetch of new location data.
Optional
enableHighAccuracy?: booleanUse GPS support if possible (increase accuracy).
Optional
requestNewPosition?: booleanForce to request always new position.
Optional
roundResultTo?: numberRound the result of latitude and longitude to given count.
Optional
supressErrorMessage?: booleanSupresses error message when position request ran in error or timeout.
Optional
watchTimeout?: numberQuit watcher after given time (milliseconds).
watcher ID
Static properties and methods related to geolocation handling.