I’m been using CesiumJS to display a number of entities (~50) on the globe, but have run into some issues when updated from v1.108.0 to anything later: whenever I select an entity the green box outline is placed in the center of the earth, and a number of entities are no longer being displayed. If I reduce the amount I’m trying to display they’ll all show as expected, but if I don’t change anything with code that previously worked I’ll run into issues.
Hi @Stonathan, sorry to hear you’re having issues upgrading.
Are you able to reproduce the issue in Sandcastle? If you can, please share that and that will help us see what actually might be wrong.
Also have you tried multiple versions of CesiumJS? Is it only happening in the most recent versions or even as far back as v1.109?
Unfortunately won’t be able to reproduce in Sandcastle. I have tried all latest versions of CesiumJS, and still encounter the problem.
An example, same code at Cesium v1.108.0 and then at v1.119.0:
No errors were logged in a debug console after the update, however you can see that a number of polygons are no longer displayed.
An update: the entity selection (green outline) appears to be working as expected with v1.123.0. Still having issues with entities not being displayed with this version.
We ended up finding the problem in our application that lead to the entities not displaying on the map after Cesium v1.108.0. It came down to Cesium not liking a country GeoJSON file that we were loading in the viewer. After we loaded that file using Cesium.GeoJsonDataSource.load then it caused polygons, polylines, corridors, CZML, etc. to not load fully on the map. We removed the loading of that file and everything now works as expected.
We will be looking into finding a new country GeoJSON file to use, but it seems like lots of other users experience problems with country files as well: Overlay country data with GeoJSON