Optional
options: OptionsOptions.
Protected
disposedThe object has already been disposed.
Protected
applyProtected
Apply any properties from another object without triggering events.
The source object.
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
Event object.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Protected
disposeGet the tracking options. See https://www.w3.org/TR/geolocation-API/#position-options.
PositionOptions as defined by the HTML5 Geolocation spec .
Protected
onProtected
onceSets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optional
silent: booleanUpdate without triggering an event.
Set the tracking options. See http://www.w3.org/TR/geolocation-API/#position-options.
PositionOptions as defined by the HTML5 Geolocation spec .
Protected
un
Classdesc
Helper class for providing HTML5 Geolocation capabilities. The Geolocation API is used to locate a user's position.
To get notified of position changes and errors, register listeners for the generic
change
event and theerror
event on your instance of module:ol/Geolocation~Geolocation.Example:
Fires
GeolocationError
Api