Hello Juan Luis ,
I have a problem where my application doesn't detect the user's location, could you please show me how did you implement it?
Hi,
is it a must to contiue calling this architectView.setLocation(latitude, longitude, altitude) in public void onLocationChanged(Location location) listener?
I tried to delay and only called architectView.setLocation ONCE, I only see indicatorDrawable but NOT the GeoObject.
loadPoisFromJsonData: function loadPoisFromJsonDataFn(poiData) function was fired because I added alert('ALT = ' + poiData.altitude + ' LAT = ' + poiData.latitude + ' LONG = ' + poiData.longitude);
var markerObject = new AR.GeoObject(markerLocation, {
drawables: {
cam: [markerImageDrawableIdle]
}
markerObject.drawables.addIndicatorDrawable(indicatorDrawable);
referencing
https://github.com/Wikitude/wikitude-sdk-samples/tree/master/08_PointOfInterest_1_PoiAtLocation
I am following
Latest Version: 9.6 2021-02-23 – 431,7 ΜΒ
Hi,
We need the setLocation method to be called in order to get the data from any external location resource you want to use.
Did you have a chance to test our current SDK Sample application implementation? It can happen that the GeoObject is not in front of the camera in the beginning, but on the opposite place, behind you.
I would need more information of what you want to achieve and the code you are implementing to help you in more detail.
Regards,
Aitor.
Hi Aitor
I will retest again my implementation to see is it behind me and get back to you again.
Hi Aitor
I retest my current implementation, no, it is no behind me.
May I know is it a MUST to repeat calling architectView.setLocation(latitude, longitude, altitude)?
Can I ignore all subsequences public void onLocationChanged(Location location) listener callback AFTER I had fired one architectView.setLocation successfully?
Hi,
Once we have the first location, we can work with it without updating it. Nevertheless, if the device moves its location we won't be able to know about it unless you update it. That's up to you.
Regards,
Aitor.
hi Aitor,
I am still reviewing what different implementations causes different results.
The implementation in Wikitude SDK after I modify to just fire once, I can see the Geo object.
The almost same implementation in another workspace just cannot see the Geo object.
Do you think the library source I use matter? I cannot verify with Wikitude SDK workspace, it got a build error after I change to implementation 'com.wikitude:js:9.6.0'
implementation project(path: ':wikitude-sdk') implementation 'com.wikitude:js:9.6.0'
I have replaced the public void onLocationChanged(Location location) and poiatlocation.js to become identical, still, I cannot get the Geo object shown on phone. An indicator marker is drawn and keep moving/pointing where is the Geo Object but did not show on the screen.
markerObject.drawables.addIndicatorDrawable(indicatorDrawable);
I really cannot find what other causes different result.
Singapore time at 3.33 pm, after clean and rebuild, an ADE menu appears, this is my first time seeing it.
Juan Luis