Using CZML data sources to display satellites, I am able to remove one datasource from viewer.dataSources. But when I attempt to remove N datasources, Cesium fails. I have linked to this ticket which explains the exact issue I'm running into.
_I'll try to create a Sandcastle example of this._
Browser: latest Chrome
Operating System: Windows 10
It's very interesting that both of these issues include satellites. What primitives (graphics) are you using to visualize them? Maybe there's an infrequently-used graphic type that has cleanup bugs.
I believe the issue might reside with using polylines in the CZML. Both issues are displaying that in the stack trace and the application was working correctly before they were introduced into the CZML.
@icarter09 are you able to reproduce this in Sandcastle?
Currently I am not since I don't have access to the exact same CZML files by way of Sandcastle. Also I forgot mention that removing N dataSources works correctly for non-sat CZML files that I am using. Comparing the sat to the non-sat files, I am noticing the polylines being contained within the sat CZML files, while they are not contained in the non-sat CZML files.
Another point to note is that is also occurring with viewer.dataSources.removeAll().
Currently I am not since I don't have access to the exact same CZML files by way of Sandcastle
You can upload your CZML to Cesium ion (https://cesium.com/ion) and then you can use it in Sandcastle. You'll see a "Open complete code example" button under the asset preview window (as shown here https://cesium.com/docs/tutorials/import-photogrammetry/#visualizing).
@OmarShehata sorry but that isn't going to work for me due to work constraints. I'll have to come up with a test one and then use the steps you provided.
Any update on this issue? I've updated to Cesium 1.74 and still experiencing this issue. As previously stated, I'm unable to provide the CZML files. I've also pinpointed the issue to being related to polylines associated within a given CZML.
Update: I have also pinpointed the issue only occurs when two of the CZML files (dataSources) both have polylines associated with them.
Test cases:
A) One CZML file with polylines being removed => WORKS
B) One CZML without polylines being removed => WORKS
C) One CZML with polylines and another CZML file without polylines and both are being removed => WORKS
D) One CZML with polylines and another CZML file with polylines and both are being removed => FAIL
@OmarShehata an example of the issue at hand has been provided on #7632