For some simple maps, I need to turn sublayer on and off. Like in the example (a) and (b) with Leaflet/Qgis2Web.
3 methods that I know:
In QGIS, under the layer settings, provide a feature filter, using the query builder. Copy the layer twice in QGIS, use a separate feature filter for each layer, then run QGIS2WEB again.