Last active
May 14, 2017 12:39
-
-
Save matthieu-D/eb022ba11eb9fd88555250dcad6164c4 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
loadPoisFromJsData: function loadPoisFromJsDataFn(poiData) { | |
World.markerList = []; | |
World.markerDrawableSelected = new AR.ImageResource("assets/marker-selected.png"); | |
World.markerDrawableDirectionIndicator = new AR.ImageResource("assets/indicator.png"); | |
for (var currentPlaceNr = 0; currentPlaceNr < poiData.length; currentPlaceNr++) { | |
World.markerDrawableIdle = new AR.ImageResource('assets/'+ poiData[currentPlaceNr].icon); | |
var singlePoi = { | |
"id": poiData[currentPlaceNr].id, | |
"latitude": parseFloat(poiData[currentPlaceNr].latitude), | |
"longitude": parseFloat(poiData[currentPlaceNr].longitude), | |
"altitude": parseFloat(poiData[currentPlaceNr].altitude), | |
"title": poiData[currentPlaceNr].name, | |
"shortDescription": poiData[currentPlaceNr].shortDescription, | |
"longDescription": poiData[currentPlaceNr].longDescription | |
}; | |
World.markerList.push(new Marker(singlePoi)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment