Last active
May 12, 2017 17:23
-
-
Save matthieu-D/4308a7b9b117e1875fce750b0e4f8d47 to your computer and use it in GitHub Desktop.
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
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