Location Manager and Wikitude should receive the same values from location iOS API.
But the point I trying to place is never on the center. Looks like there is a difference between location values that Wikitude receives and I receive.
Question #1 Can I receive somehow the same values? How I can synchronize my values with Wikitude values.
Thoes screenshots show my best results.
Usually distance is undefined.
Question #2 Why Wikitutde has problem with calculating distance from user. On Android there is no problem with that. Could be that altitude have something to do this? The point is below me.
I tried some crazy solutions to solve those problems.
Solution that didn't work #1: Use Wikitude only values.
It's true now everything works better but still I have some weird problem. This is how compass acts when I inject values. Look like the point is moving because of altitude.
Since my altitude never be accurate I made a decision that I will ignore that value.
My co-worker that works on Android version told me to set "0 value" to altitude to Wikitude.
Now there is no problem with centering point. .But the points are always at the my feet.
I was confused. If a inject 0 altitude value to Wikitude and also add point with 0 altitude. Should this point be in the middle of my view. According to my co-worker this logic should be correct.
Then I decided to set altitude of points and everything else to "170". Now of course points are in the sky. There is no problem with compass as long there is static altitude.
214.763 is not a "0"
Looks like I inject my longitude, latitude and accuracy values correctly but altitude is still different from value that I inject.
Can I tell Wikitude to ignore altitude value. It doesn't matter which version of method of InjectLocationWith I use.
I need you help again.
about 8 years ago
please send me either mails OR write forums posts. It's hard to follow your requests if you write both with different subjects!
I responded to your mails to make sure we can help you as soon as posible.
about 8 years ago
I solved problem with weird behavior of altitude.
Without a doubt right now I am inserting my values but there are diffrent problems. If you don't respond to this thread I will create new one with the same question. I don't know how your ticket system works.
This is really important to me and my problems with Wikitude will be finally over. I still need to create two similar apps for iOS and I still didn't solve this issue.
1. Why distance form user is undefined. I need some suggestions this problem exist with InjcetLocation method and just Wikitude values. The same HTML/JS code works correctly on Android.
2. No matter how much I try this time I can't create point at the center of compass. If this normal behavior for compass we as a developers can accept that but we need your own word.
Sometime Wikitude shows me that distance between me and the point is just 10 cm. What is happening here.
If Wikitude almost always can't count my distance between me and the point there is possibility that compass simply doesn't work correctly.
Sorry for my English.
I am really close to the end. Please help me
about 8 years ago
1) distanctToUser can return undefined if the user location is not available at this time. See the AR.location reference for more information about this. Maybe you're injecting the location in ObjC after you've loaded the World? You should inject the location before you're about to load the World.
2. If you position a GeoLocation/GeoObject at the exact same location as the user location is, the marker can be in front, beneath or above you. If you inject a location without altitude, the marker should be eiter visible in front of you or is not visible at all.
If you still have problems with your World, you can send us your Xcode project and we have a look at it.