Here's how you do it for the image layer. For other layers, the same function is used:
myimage = new ol.layer.Image({ source: new ol.source.ImageStatic({ url:some_url, crossOrigin: '', projection: 'EPSG:26916', imageExtent: some_extent }), opacity: 1.0 }); . . . myimage.setOpacity(0.6);
source share