Class: ol.Geolocation

ol.Geolocation

new Geolocation

Parameters:
Name Type Argument Description
positionOptions GeolocationPositionOptions= <optional>
(Optional) PositionOptions.
Source:
  • geolocation.js, line 35

Extends

Members

<static, constant> SUPPORTED :{boolean} Is supported.

Source:
  • geolocation.js, line 95

changed

Inherited From:
Source:
  • object.js, line 166

setValues

Inherited From:
Source:
  • object.js, line 275

Methods

bindTo

Parameters:
Name Type Argument Description
key string Key.
target ol.Object Target.
targetKey string= <optional>
(Optional) Target key.
noNotify boolean= <optional>
(Optional) No notify.
Inherited From:
Source:
  • object.js, line 145

disposeInternal

Source:
  • geolocation.js, line 67

get

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • object.js, line 173
Returns:
Value.
Type
*

getAccuracy

The accuracy of the position in meters.
Source:
  • geolocation.js, line 134
Returns:
accuracy.
Type
number | undefined

getAltitude

Source:
  • geolocation.js, line 147
Returns:
Altitude.
Type
number | undefined

getAltitudeAccuracy

Source:
  • geolocation.js, line 160
Returns:
Altitude accuracy.
Type
number | undefined

getHeading

Source:
  • geolocation.js, line 173
Returns:
Heading.
Type
number | undefined

getKeys

Get a list of object property names.
Inherited From:
Source:
  • object.js, line 197
Returns:
List of property names.
Type
Array.<string>

getPosition

The position of the device.
Source:
  • geolocation.js, line 187
Returns:
position.
Type
ol.Coordinate | undefined

getProjection

Source:
  • geolocation.js, line 200
Returns:
projection.
Type
ol.Projection | undefined

getSpeed

Source:
  • geolocation.js, line 213
Returns:
Speed.
Type
number | undefined

notify

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • object.js, line 208

set

Parameters:
Name Type Description
key string Key.
value * Value.
Inherited From:
Source:
  • object.js, line 236

setOptions

Parameters:
Name Type Description
options Object.<string, *> Options.
Inherited From:
Source:
  • object.js, line 258

setProjection

Parameters:
Name Type Description
projection ol.Projection Projection.
Source:
  • geolocation.js, line 226

unbind

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • object.js, line 281

unbindAll

Removes all bindings.
Inherited From:
Source:
  • object.js, line 298