Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use createWorldTerrainAsync? #630

Open
tika-iteratec opened this issue Sep 25, 2023 · 2 comments
Open

How to use createWorldTerrainAsync? #630

tika-iteratec opened this issue Sep 25, 2023 · 2 comments

Comments

@tika-iteratec
Copy link

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!

@ilyaly
Copy link

ilyaly commented Nov 9, 2023

Same problem, would apricate any advices.

@rrainey
Copy link

rrainey commented Dec 21, 2023

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

Using this technique fixed the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants