resium
resium copied to clipboard
How to use createWorldTerrainAsync?
Hi,
how should you use createWorldTerrainAsync properly? Since the newer version of cesium and resium the function createWorldTerrain is not available anymore. You're not supposed to use await in the render function. If I set it up like this the map doesn't show up on the development server:
<Viewer full
terrainProvider={
createWorldTerrainAsync({requestWaterMask: true, requestVertexNormals: true})
}
Do you know any fixes? Thanks!
Same problem, would apricate any advices.
See this: https://community.cesium.com/t/cesium-1-107-createworldterrainasync-function-problem/25323/2
Using this technique fixed the issue for me.