reearth / resium

React components for 🌏 Cesium
https://resium.reearth.io
MIT License
705 stars 130 forks source link

3DTilesets do not work after viewer is recreated #661

Open Kai-W opened 2 months ago

Kai-W commented 2 months ago

After the Viewer is recreated e.g because a readOnly Prop is updated the 3DTileset are no longer working.

https://codesandbox.io/p/devbox/elastic-thunder-wvx2n3?file=%2Fsrc%2FApp.tsx%3A45%2C11-45%2C68

In the example cesium and the 3D Tileset is loaded and after 2 seconds the Base Layer changes. The viewer gets recreated but the Tilesets don't get updated to the changed viewer