is there any way to not display terrain

Is there any way to have a viewer have a terrain (so that things like scene.globe.getHeight will work) but have it not be displayed in the actual viewer.

Hi there,

getHeight is a synchronous approximation that requires terrain to be visualized, but you can use sampleTerrainMostDetailed to do the same thing even when terrain is off (be warned that this is an asynchronous operation that contacts the server).

http://cesiumjs.org/Cesium/Build/Documentation/sampleTerrainMostDetailed.html

Hope that helps,

  • Rachel