I have a layer with some points and I want to publish it using qgis2web. I have seen some exampes where the legend can be filtered such as in this webmap: https://ukerc.rl.ac.uk/TOOLS/EnergyDemonstrators/map.html#5/55.674/-2.490

webmap using qgis2web

What setting was used to make this filtered legend? The closest I can make is this where I can only filter the layers themselves.:

my attempt

1 Answer 1


This is because the example you link to has separate layers, whereas yours is one layer, rendered with multiple styles (eg categorized, graduated, or rule-based). I'm afraid qgis2web only creates visibility checkboxes for whole layers, not for categories/ranges/rules within a layer's renderer.

The workaround is to create a separate layer for each of your categories/ranges/rules.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.