Cesium crashes here
when I remove a dataSource.
length == 4
i == 3
dataSources.length == 3
dataSource == dataSources.get(i) == undefined
So, it looks like it is being processed in a worker in the same time I remove it and this is not handled properly.
I’d say an easy fix would be to cycle through dataSources in the reverse order.
Unfortunately, I can’t provide a simple example reproducing this.
Can you confirm this is a bug?
Can you propose a workaround?