Last active
May 14, 2017 13:33
-
-
Save matthieu-D/c6ac6c37af4bfa81835062907811320e 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
requestDataFromLocal: function requestDataFromLocalFn(centerPointLatitude, centerPointLongitude) { | |
var poisToCreate = 3; | |
var poiData = []; | |
for (var i = 0; i < poisToCreate; i++) { | |
poiData.push({ | |
"id": meetingPoints[i].id, | |
"longitude": (centerPointLongitude + (Math.random() / 5 - 0.1)), | |
"latitude": (centerPointLatitude + (Math.random() / 5 - 0.1)), | |
"shortDescription": meetingPoints[i].shortDescription, | |
"longDescription": meetingPoints[i].longDescription, | |
"altitude": AR.CONST.UNKNOWN_ALTITUDE, | |
"name": meetingPoints[i].name, | |
"icon": meetingPoints[i].icon | |
}); | |
} | |
World.loadPoisFromJsData(poiData); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment