Path: blob/main/docs/user_guide/plugins/grouped_layer_control.md
1603 views
GroupedLayerControl
We can create a GroupedLayerControl and define what layers we want to group together. Those layers won't show up in the regular layer control.
GroupedLayerControl
takes the same arguments as LayerControl
.
By default, groups are exclusive, meaning only one layer in a group can be active at a time.
It's also possible to have check boxes instead of radio buttons, so multiple layers within a group can be active.
In this example the layers are not shown by default, but can all be activated.