I have some POI's showing in the AR World. When I'm approaching to one of these, POI will disappear and HTML buttons will appear. I do this using removeCamDrawable method. When I walk away from the POI, I want to show POI Label again, but I can't because I used removeCamDrawable method before... How can I do this?
This is the code
locationChanged: function locationChangedFn(lat, lon, alt, acc) {
// request data if not already present
if (!World.initiallyLoadedData)
{
World.requestDataFromLocal(lat, lon);
World.initiallyLoadedData = true;
}
else
{
var newLocation = new AR.GeoLocation(lat, lon, alt);
for(i=0;i< World.markerList.length;i++)
{
// Updating POI distance
var newLocation2 = World.markerList.markerLocation;
You may therefore hide & show the label or any other GeoObject without destroying it. Try to recycle existing GeoObjects instead of recreating them on every location update to avoid flickering.
Luca