Created
May 28, 2021 13:04
-
-
Save ng-the-engineer/14d0debba6afc0126bde395feba7ef77 to your computer and use it in GitHub Desktop.
Code snippet of tutorial build a running tracker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const HIGH_ACCURACY = true; | |
const MAX_CACHE_AGE_MILLISECOND = 30000; | |
const MAX_NEW_POSITION_MILLISECOND = 5000; | |
const trackOptions = { | |
enableHighAccuracy: HIGH_ACCURACY, | |
maximumAge: MAX_CACHE_AGE_MILLISECOND, | |
timeout: MAX_NEW_POSITION_MILLISECOND, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment