Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active May 18, 2017 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/c37cfa0603a1b7986da3f835488b1535 to your computer and use it in GitHub Desktop.
Save matthieu-D/c37cfa0603a1b7986da3f835488b1535 to your computer and use it in GitHub Desktop.
locationChanged: function locationChangedFn(lat, lon, alt, acc) {
if (!World.initiallyLoadedData) {
World.requestDataFromLocal(lat, lon);
World.initiallyLoadedData = true;
} else {
World.updateMarkersDistance();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment