Start a new topic

can't find POI

can't find POI


Hi,

I develop an iOS application and have a quesiton about Point of interest.  My POI doesn't shows on the screen, but when i click on the popup status at the bottom of the view, its said " places are loaded". Places are loaded but they are not visisble in the view.  I can't find the problem. please help me!

here is the code that i changed fromLocaResource.js

// request POI data

/*

requestDataFromLocal: function requestDataFromLocalFn(lat, lon) {

// comment out these 2 lines and use 'World.loadPoisFromJsonData(myJsonData);' instead to use static values 1:1. For demo purpose they are relocated around the user

var poisNearby = Helper.bringPlacesToUser(myJsonData, lat, lon);

World.loadPoisFromJsonData(poisNearby);

}

*/

 

requestDataFromLocal: function requestDataFromLocalFn(lat, lon) {

World.loadPoisFromJsonData(myJsonData);

}

};

 

/*

var Helper = {

bringPlaceToUser: function bringPlacesToUserFn(poiData, latitude, longitude) {

for (var i = 0; i < poiData.length; i++) {

poiData.latitude = latitude + (Math.random() / 5 - 0.1);

poiData.longitude = longitude + (Math.random() / 5 - 0.1);

poiData.altitude = AR.CONST.UNKNOWN_ALTITUDE;

}

return poiData;

}

}

*/

Hi Anush,
I would suggest that you start with your own ARchitect World which is only a single .html file that includes a .js file. Create a function in the .js file that looks like the following:

function createCircle()

{

AR.logger.activateDebugMode();

var circle = new AR.Circle(2, {style: {fillColor: '#8F45FF'}});

 

var drawableLocation = new AR.GeoLocation(*your latitude*, *your longitude*);

var geoObject = new AR.GeoObject(drawableLocation, {drawables: {cam: circle}});

 

AR.logger.info("circle created");

}

 

After that, load the ARchitect World (either from your native application that you have created or using e.g. a public Dropbox link that you enter in the SDK Example application) and check if you can see the circle. Then continue developing your own ARchitect World.

 


Best regards

Andreas

hi,

Thanks for the answer. I will do like that and Ihope it works!! 
Login or Signup to post a comment