Describe the bug
When a layer in a Cesium map fails to load for some reason, e.g. there's a 404 error, we show a little warning sign next to the layer to indicate that there was a problem. However, the user is still able to toggle the layer and make it appear visible, even though it is not in fact visible on the map. They broken layer also shows up in the legend view, which might be confusing. I believe we used to prevent broken layers from being switched to visible, so this is probably a bug introduced somewhere in the last few releases.
Describe the bug When a layer in a Cesium map fails to load for some reason, e.g. there's a 404 error, we show a little warning sign next to the layer to indicate that there was a problem. However, the user is still able to toggle the layer and make it appear visible, even though it is not in fact visible on the map. They broken layer also shows up in the legend view, which might be confusing. I believe we used to prevent broken layers from being switched to visible, so this is probably a bug introduced somewhere in the last few releases.
To Reproduce Steps to reproduce the behavior:
You can also reproduce locally by ensuring there's no Cesium token set, and trying to load any of the layers hosted on Cesium Ion
Expected behavior I think that the layer should remain set to "hidden" when it's not shown on the map
Screenshots