walkermatt / ol-layerswitcher

Layer control for OpenLayers
MIT License
384 stars 176 forks source link

Set `.disabled` on the whole item, not just the label #484

Open olivierdalang opened 2 years ago

olivierdalang commented 2 years ago

When a layer is not visible due to zoom levels, it's label gets a disabled class. Nice ! But what if you want to hide the entry altogether ?

Could we have the class on the <li> item instead ?