Hi I’m stuck here. I need to keep track of my XYZ of the camera, and assign that information to a point later in the script. I found out that the coordinate system seems to change, but not on my point. I need the point to always stay in front of my camera, but when it starts with:
x: 7.654 y: 45.919 Z: 5183 and changes to: x: 852275.0892005145 y: 5767392.023641216 Z: 5223.5517142592, then I’m a little lost in what to do. I could use some help in getting it to keep the prober coordinates on the camera. Thanks.
Though you can set the camera using Geographic coordinates like you are, they will be projected to the basemaps coodinate system which is web mercator. You have access to a client side utility called WebMercatorUtils to do the conversion from WKID 102100 (web mercator) back to WKID 4326 (Geographic).
Hi Robert, thank you for taking you time to answer, I tried your answer, but I think I did it wrong, it didn’t had the outcome I was expecting. I changed the view.camera.position.x to view.camera.position.longtitude and that seem to fix the issue.