CesiumGS / cesium-webpack-example

The minimal recommended setup for an application using Cesium with Webpack.
Apache License 2.0
248 stars 160 forks source link

createWorldTerrain not found in cesium #44

Closed zxyfreediver closed 10 months ago

zxyfreediver commented 1 year ago

I cloned the cesium-webpack-example and try to run it on localhost. errors show that no createWorldTerrain in "cesium". and then, I checked the API doc, and found it should be createWorldTerrainAsync. I think the cesium-webpack-example uses the old version of cesium and it should be updated.

createWorldTerrain -> createWorldTerrainAsync createOsmBuildings -> createOsmBuildingsAsync

FuXiangGit commented 1 year ago

I hava the same problem

zxyfreediver commented 1 year ago

you can update the two api in your code like createOsmBuildings() -> await createOsmBuildingsAsync()

it works for me

dmanchester commented 1 year ago

I encountered this issue, too, with Cesium v1.108.

The main Cesium repo's CHANGES.md indicates createWorldTerrain and createOsmBuildings were deprecated in v1.104 and removed in v1.107, having been replaced by async counterparts.