Hello,
I added the terrain and set this geographic coordinate in north polle, and there was a memory leak.
And I can’t control the earth;
const viewer = new Cesium.Viewer('cesiumContainer', {
terrain: new Cesium.Terrain(
new Cesium.EllipsoidTerrainProvider()
),
});
viewer.terrainProvider = await Cesium.createWorldTerrainAsync({});
document.getElementById("test111").addEventListener('click', () => {
viewer.camera.setView({
destination: Cesium.Cartesian3.fromDegrees(
-100,
90,
0
// 100
),
orientation: {
heading: 0,
pitch: -1.5707963267948966,
roll: 0
},
})
});
About 5 seconds later, the page crashes;
I have no control over what coordinates and heights the user uses ,
So what should I do to fix the crash?
Thanks!