app/src/main/assets/ArchitectWorld/js/fromlocalresource.js
// called to inject new POI data
called to inject new POI data
called to inject new POI data
function loadPoisFromJsonDataFn(poiData) {
		World.markerList = [];
		World.markerDrawable_idle = new AR.ImageResource("assets/marker_idle.png");
		World.markerDrawable_selected = new AR.ImageResource("assets/marker_selected.png");
		World.markerDrawable_directionIndicator = new AR.ImageResource("assets/indi.png");
		for (var currentPlaceNr = 0; currentPlaceNr < poiData.length; currentPlaceNr++) {
			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,
				"description": poiData[currentPlaceNr].description,
				"image": poiData[currentPlaceNr].image
			};
			World.markerList.push(new Marker(singlePoi));
		}
		World.updateStatusMessage(currentPlaceNr + ' places loaded');
	}
function loadPoisFromJsonDataFn ( poiData ) { World . markerList = [ ] ; World . markerDrawable_idle = new AR . ImageResource ( "assets/marker_idle.png" ) ; World . markerDrawable_selected = new AR . ImageResource ( "assets/marker_selected.png" ) ; World . markerDrawable_directionIndicator = new AR . ImageResource ( "assets/indi.png" ) ; for ( var currentPlaceNr = 0 ; currentPlaceNr < poiData . length ; currentPlaceNr ++ ) { 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 , "description" : poiData [ currentPlaceNr ] . description , "image" : poiData [ currentPlaceNr ] . image } ; World . markerList . push ( new Marker ( singlePoi ) ) ; } World . updateStatusMessage ( currentPlaceNr + ' places loaded' ) ; }
called to inject new POI data
called to inject new POI data
// empty list of visible markers // start loading marker assets // loop through POI-information and create an AR.GeoObject (=Marker) per POI