new Geolocation
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
positionOptions |
GeolocationPositionOptions= |
<optional> |
(Optional) PositionOptions. |
- Source:
- geolocation.js, line 34
Extends
Members
-
<static> isSupported :{boolean} Is supported.
-
- Source:
- geolocation.js, line 91
-
changed
-
- Inherited From:
- Source:
- object.js, line 156
-
setValues
-
- Inherited From:
- Source:
- object.js, line 249
Methods
-
bindTo
-
Parameters:
Name Type Argument Description keystring Key. targetol.Object Target. targetKeystring= <optional>
(Optional) Target key. noNotifyboolean= <optional>
(Optional) No notify. - Inherited From:
- Source:
- object.js, line 135
-
disposeInternal
-
- Source:
- geolocation.js, line 66
-
get
-
Parameters:
Name Type Description keystring Key. - Inherited From:
- Source:
- object.js, line 163
Returns:
Value.- Type
- *
-
getAccuracy
-
The accuracy of the position in meters.
- Source:
- geolocation.js, line 128
Returns:
accuracy.- Type
- number | undefined
-
getAltitude
-
- Source:
- geolocation.js, line 141
Returns:
Altitude.- Type
- number | undefined
-
getAltitudeAccuracy
-
- Source:
- geolocation.js, line 154
Returns:
Altitude accuracy.- Type
- number | undefined
-
getHeading
-
- Source:
- geolocation.js, line 167
Returns:
Heading.- Type
- number | undefined
-
getPosition
-
The position of the device.
- Source:
- geolocation.js, line 181
Returns:
position.- Type
- ol.Coordinate | undefined
-
getProjection
-
- Source:
- geolocation.js, line 194
Returns:
projection.- Type
- ol.Projection | undefined
-
getSpeed
-
- Source:
- geolocation.js, line 207
Returns:
Speed.- Type
- number | undefined
-
notify
-
Parameters:
Name Type Description keystring Key. - Inherited From:
- Source:
- object.js, line 184
-
set
-
Parameters:
Name Type Description keystring Key. value* Value. - Inherited From:
- Source:
- object.js, line 212
-
setOptions
-
Parameters:
Name Type Description optionsObject.<string, *> Options. - Inherited From:
- Source:
- object.js, line 234
-
setProjection
-
Parameters:
Name Type Description projectionol.Projection Projection. - Source:
- geolocation.js, line 220
-
unbind
-
Parameters:
Name Type Description keystring Key. - Inherited From:
- Source:
- object.js, line 255
-
unbindAll
-
Removes all bindings.
- Inherited From:
- Source:
- object.js, line 272