leaflet-panel-layers
leaflet-panel-layers copied to clipboard
Allow an Overlay group to use radio buttons
For example, allow by adding an option to the group definition:
radio: true,
Or some other reasonable keyword.
Note that similar functionality has been implemented in the (now stagnant) leaflet-groupedlayercontrol, although they used an array of group names:
exclusiveGroups: ["Landmarks"]

Related to #39
I've done a fork and am in the process of enhancing the code. A couple of limitations:
- It groups the radio buttons on Group Name. So the Group Name should be unique.
- If multiple layers in the group are set to active in the definition, they will all be displayed on the map, but only one radio button will be selected. Not good.

addresses #39
added new options exclusiveGroup solved in version 1.2.8 demo online here: https://opengeo.tech/maps/leaflet-panel-layers/examples/group-layers-exclusive.html