Is there a way to cache/buffer terrain data locally?

Hi all,
we are working on a project to display multiple resources in a viewer. This multi viewer than is used to performe some 3D measurements in the data. The x/y coordinate is easy to get, but for the z- value we need a server request for every position. Is there a way to cache/buffer the neighboring terrain data localy to faster access the height data?

Any ideas are welcome,
thanks in advance!

Hi Uwe,

Some caching is already performed by the browser. But if you wanted, you could request specific tiles you need using requestTileGeometry and keep a copy of the **TerrainData. **Additionally, if you just need to get height, try sampleTerrainMostDetailed.