locationChanged: function locationChangedFn(lat, lon, alt, acc) { // request data if not already present if (!World.initiallyLoadedData) { var poiData = { "id": 1, "longitude": (lon + (Math.random() / 5 - 0.1)), "latitude": (lat + (Math.random() / 5 - 0.1)), "altitude": 100.0 }; World.loadPoisFromJsonData(poiData); World.initiallyLoadedData = true; } }
Théo CLAYETTE
Hi,
I'm currently creating my app with Wikitude so I followed the official tutorial.
So, there's something I didn't found: how to create my own POI. I tried to add it in source code, but I feel like I'm doing it wrong.
Thanks for your answer.
Theo