I'm using the latest version of QGIS2Web and QGIS 3.38.3 Grenoble.
As far as I know there's not a direct way to export the legend for raster layers. Neither with Leaflet nor with OpenLayers.
Does anybody know an alternative method (maybe changing the code in the exported html) to do t