Optionaloptions: OptionsOptions.
ProtecteddisposedThe object has already been disposed.
ProtectedapplyProtectedApply 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.
ProtecteddisposeGet the tracking options. See https://www.w3.org/TR/geolocation-API/#position-options.
PositionOptions as defined by the HTML5 Geolocation spec .
ProtectedonceProtectedonSets 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.
Optionalsilent: 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 .
Protectedun
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
changeevent and theerrorevent on your instance of module:ol/Geolocation~Geolocation.Example:
Fires
GeolocationError
Api