Class: DecorateGeolocation service:ngeoDecorateGeolocation

ngeo.DecorateGeolocation

new DecorateGeolocation()

Provides a function that adds a "tracking" property (using Object.defineProperty) to the ol.Geolocation instance, making it possible to activate/deactivate the tracking mode.

Example:

 <input type="checkbox" ngModel="geolocation.tracking" />

See our live example: ../examples/geolocation.html