I need to make a new entity from a longitude and latitude with terrain. Going from a cartesian3 to a longitude and latitude involves a loss of precision. But I want a longitude and latitude, and I want them to be precise! Is this possible via the Cesium API?
For each sandcastle provided, first maneuver the camera over some terrain. The Rocky Mountains is a good place. Next, zoom in to very low altitudes. Then, maneuver the camera and tilt the globe so that your camera is sitting on the side of a mountain, and you are looking over a range of terrain heights. Finally, click around on the various terrain heights at different places in the viewport. Note how in the lonlat sandcastle, the marker is placed near-ish to your click spot. This problem is accentuated close to the bottom of the viewport. In the cartesian3 sandcastle, the marker placement is spot on.
What I want to do but isn’t working is in the lonlat sandcastle below:
A workaround is in the cartesian3 sandcastle below:
I really want to use latitude and longitude to create a new entity. While the workaround posted above is fine for this trivial example, in my case, using a latitude or longitude, maintaining original precision, is highly desirable. Is this possible via the Cesium API?
I am on Cesium 1.26. This happens in IE, Chrome, FF, and Vivaldi.
Thanks in advance!