Correct elevation above sea level

I know this has been discussed before, but is there any further information about how to obtain the correct elevation (height) above sea level?
For example when digitising points on the terrain or ensuring sea level is zero?
I have used the example “Drawing on Terrain.html” that was posted on Github, using Cesium terrain.
var earthPosition = viewer.scene.pickPosition(event.position);

Anything built-in or are there any approximations that can be used?

Any help appreciated.


Thank you for your question! I recommend checking out the following two community forum threads for more information and context about how CesiumJS handles elevation.

As always, let me know if you have any other questions or concerns!