when I try to use data from my json by using corresponding path it no longer works. I know my json is loaded correctly with the correct url since I display the same url in description (see screenshot attached w/o pikachu).
var data = poiData.pinpoints;
// loop through POI-information and create an AR.GeoObject (=Marker) per POI
for (var currentPlaceNr = 0; currentPlaceNr < data.length; currentPlaceNr++) {
var singlePoi = {
"id": data.id,
"latitude": data.latitude,
"longitude": data.longitude,
"altitude": 100,
"title": data.name,
"description": data.media_url,
"imageResource" : new AR.ImageResource(data.media_url)
};
Any help would be very much appreciated.
A
Andreas Fötschl
said
about 7 years ago
Hi Pierre,
Your issue seems to be related to this post. I'd write the same answer as in our previous conversation.
Wheter you use hardcoded value or the value from a JSON object doesn't make a difference in runtime, so most likely a typo or syntax issue caused the troubles.
Pierre Addoum