That's my post and the answer didn't fix the problem
I fixed the problem, I posted the solution in StackOverflow if anyone is interested
Did you follow the instructions provided in the stackoverflow forum post above?
I added a to RelativeLoction var location = new AR.RelativeLocation(null, 8, 0, a);.
The problem is it ignores the value that I passed which is 10 and take a as 0. I know that the value passed correctly from this var e = document.getElementById('loadingMessage').innerHTML = "Altitude: " + a; which shows Altitude: 10.
Thanks in advance.