resium icon indicating copy to clipboard operation
resium copied to clipboard

How to use createWorldTerrainAsync?

Open tika-iteratec opened this issue 1 year ago • 2 comments

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!

tika-iteratec avatar Sep 25 '23 08:09 tika-iteratec

Same problem, would apricate any advices.

ilyaly avatar Nov 09 '23 14:11 ilyaly

See this: https://community.cesium.com/t/cesium-1-107-createworldterrainasync-function-problem/25323/2

Using this technique fixed the issue for me.

rrainey avatar Dec 21 '23 19:12 rrainey