Hi,
I would imagine versions 1 and 2 to work, version 3 seems to me to be incorrect syntax, but since it's JavaScript, who knows...
Version 1 will add several thousand kilometers to the current GPS location of the device in both latitude and longitude and, potentially, push it out of the valid ranges ([-90, 90] for latitude, [-180, 180] for longitude).
Version 2 refers to a geolocation somewhere in western China. Is this really where you intended to place your maker?
- Daniel
Update: With Version 2, it shows it on the ground and not at my height and where ever I go it sticks to the ground no matter what direction I am facing...
Hi Francis,
sorry for the confusion with the location. Must have been a copy&paste fail on my end. I'm now getting Ohio as well. So all go there. Did you set an altitude for your GPS location or just latitude and longitude?
Would it be possible for you to make a short screen recording of what's happening? Does the Marker move at all? Rotate?
- Daniel
I actually got it to work by using the Local Resource sample with the static JSON data. The only thing now is that no matter where I am, the POI constantly rotate around me. I have tried it outdoors and stayed away from metal and whatnot. I have also added the Google Play services to my build.gradle file. Is there a particular function that deals with this that I do not know about? I saw this error in another forum post but it was unsolved...
Hi Francis,
what exactly do you mean by rotate around you? Do the markers rotate with you as you turn instead of staying in their proper spot? This sounds like there's something wrong with the gyroscope. Does this happen on multiple devices?
- Daniel
Hi Daniel,
They rotate around me even if I don't move. They just continually move around me like a carousel and yes it does and I am currently using a Pixel phone. This happens when I simply put customized coordinate in the Local Resource as well as the Web Server. Both work fine with the sample randomized ones. They just don't stay when I put in my own coordinates.
Francis Heroux
te
favorite
I am new and am using Wikitude SDK for Android (An AR application) and they currently have the markers randomly being set.
I have tried simply replacing the math portion with coordinates like this
That doesn't work or
or
But to no avail. Any help/tips would be appreciated.
Thanks