Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active May 12, 2017 17:23
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/4308a7b9b117e1875fce750b0e4f8d47 to your computer and use it in GitHub Desktop.
Save matthieu-D/4308a7b9b117e1875fce750b0e4f8d47 to your computer and use it in GitHub Desktop.
var World = {
initiallyLoadedData: false,
markerDrawableIdle: null,
markerDrawableDirectionIndicator: null,
locationChanged: function locationChangedFn(lat, lon, alt) {
if (!World.initiallyLoadedData) {
var poiData = {
"id": 1,
"longitude": (lon + (Math.random() / 5 - 0.1)),
"latitude": (lat + (Math.random() / 5 - 0.1)),
"altitude": alt,
"description": "The secret Ionic shop is here",
"title": "Ionic meeting"
};
World.loadPois(poiData);
World.initiallyLoadedData = true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment