I would like to show multiple POIs in Architectview depends on location.
I add my POIs to architectview, the radar is being update from compass as good as it needs but nothing appears on screen neither in radar!
Here is my code:
final StartupConfiguration config = new StartupConfiguration(getString(R.string.api_key_wikitude), StartupConfiguration.Features.Geo, StartupConfiguration.CameraPosition.BACK); architectView.onCreate(config);
// static property App.markerDrawable_idle = new AR.ImageResource("assets/marker_idle.png");
// initialize app var app = new App();
Radar.js
var PoiRadar = { init: function() { AR.radar.container = document.getElementById("radarContainer");
AR.radar.background = new AR.ImageResource("assets/radar.png"); AR.radar.northIndicator.image = new AR.ImageResource("assets/radar_north.png");
// center of north indicator and radar-points in the radar asset, usually center of radar is in the exact middle of the bakground, meaning 50% X and 50% Y axis --> 0.5 for centerX/centerY AR.radar.centerX = 0.5; AR.radar.centerY = 0.5;
There is no console errors and I've my console debug line showed for each marker i need.
Am I missing something?
Someone has an idea?
A
Andreas Fötschl
said
over 7 years ago
Ensure to properly encode your JSON when using it as function param.
You may even debug your native code to get the "json" value and execute the command then via remote WebView debugging's console to see potential syntax error.
Best regards
T
Thibaud RENAUX
said
over 7 years ago
Thanks, but It not work with sample data. It seems like architectview not receive GPS updates.
In fact Compas is updating and I've a geo simulator that mock a geo path to GPS sensor device. It works on a google map inside the app but the onLocationChanged of Wikitude context's throw nothing.
Is there a way to ensure communications between GPS and architectview?
A
Andreas Fötschl
said
over 7 years ago
Note that you have full control over the location you want to pass over to the architectView. Just call architectView setLocation function using your custom location provider
T
Thibaud RENAUX
said
over 7 years ago
Thanks for help,
I thought it could be a way to set a listener of the provider and the architectview can hold changes by itself.
Thibaud RENAUX