Module: ol/Geolocation

ol/Geolocation


Classes

Geolocation

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
tracking boolean <optional>
false

Start Tracking right after instantiation.

trackingOptions GeolocationPositionOptions <optional>

Tracking options. See href="http://www.w3.org/TR/geolocation-API/#position\_options\_interface">www.w3.org/TR/geolocation-API/#position\_options\_interface}.

projection module:ol/proj~ProjectionLike <optional>

The projection the position is reported in.

Events

error

Geolocation.js, line 171

Triggered when the Geolocation returns an error.