How to lock terrain level of agi

Hi,

Is there any way to lock the max terrain level of aig(//assets.agi.com/stk-terrain/world)? Or get the available terrain level.
It is so unconfortable that connot confirm the available level when sampleTerrain, e.g., (104.1690813, 30.5867218) is just available in 14th level but (-101.6871949, 42.5672549) can be sampled in 15th level at least.

Hi,

if you just want to sample the terrain you can also use the sampleTerrainMostDetailed function

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

Or you can parse the layer.json file yourself http://assets.agi.com/stk-terrain/world/layer.json. There you can find the availability of all tiles.

Hi jbo...,

It's very helpful for us, many thanks.