Hi, I migrated my code to the latest CesiumJS version (1.109). I noticed that setting a custom terrain model leads to an error message when using the code snippet from Cesium Ion:
viewer.scene.setTerrain(Cesium.CesiumTerrainProvider.fromIonAssetId(id));
TypeError: Cannot read properties of undefined (reading ‘addEventListener’)
This works:
viewer.scene.setTerrain(new Cesium.Terrain(Cesium.CesiumTerrainProvider.fromIonAssetId(id)));
Can you confirm this?