Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 440 Bytes

File metadata and controls

13 lines (7 loc) · 440 Bytes

In app.compontent.ts initialization you can choose between three methods

  • this.startWatchingPosition();

This one uses setInterval and geolocation.getCurrentPosition to retrieve points periodically.

  • this.watchPosition();

This one just uses geolocation.watchPosition

  • this.startWorkaroundWatch();

This one tries to be smart and uses setInterval and watchPosition and after receiving a position from watchPosition it clears the watch