Topic: Setting the Altitude of a 3D Marker
Hi there,
Great package, thanks!
I am having trouble setting the altitude of 3D markers. Correct me if I am wrong, but it seems like the package was intended to only allow markers that conformed to the surface of the map? None of the methods seem to take altitude into consideration when a developer wants to set the altitude.
I have a script setup where I am able to set the altitude of the marker by changing its transform.position.y in a LateUpdate, and also setting the execution order for this script to +1 in the Script Execution Order setting in Unity to avoid jittering of position.
My first issue, however, is that I am not sure what values to set for the altitude, as I do not know how that relates to distance on the map. I am currently setting arbitrary y values, it would be nice to be able to set the altitude through a method and forget about it.
My second issue is because I am setting the trannsform.position.y of the object, it appears to be at the same height relative to each zoom level. So if I am zoomed close to the surface and it looks like it may be at the right altitude, when I zoom out, it appears to be extremely high (still at the same y position, but the map itself has zoomed out).
Is there a way to accomplish this through the API? If not, what is the proper way to do this through setting the transform.position.y manually?
Thanks!