Hello. At the beginning I've had one ImageryProvider with multiple layers and they were displayed correctly. Now I have multiple ImageryProviders, each of those has it's own layer. When I try to display them, only one of them is visible (the one on the top of the ImageryLayerCollection). I've lowered it's alpha property just to make sure if other layers are underneath it and they were. My question is how to properly display all of the layers without modifying their alpha value?
Example code:
var imageryProvider1 = new Cesium.WebMapServiceImageryProvider({
url: "url_wms_1",
layers: "layer_1",
parameters: { transparent: 'true' }
});
var imageryProvider2 = new Cesium.WebMapServiceImageryProvider({
url: "url_wms_2",
layers: "layer_2",
parameters: { transparent: 'true' }
});
viewer = new Cesium.Viewer('map3d', {
imageryProvider: imageryProvider1,
baseLayerPicker: false
});
viewer.scene.imageryLayers.addImageryProvider(imageryProvider2); // only this one is visible
Cesium version: 1.50.0
OS: Windows 10
Browsers: Chrome & Firefox
Thank you all for your time and help!