I need help to display layers group/non group 1. with checkbox to select layer or group 2. icon/symbol for each layer.
I saw example codes from OpenLayers where it's adding the layers statically. I would like to populate it dynamically so in future if a layer is added/remove it will be displayed without changing any code.
Sample layout of what I want to achieve is posted below, please note that checkboxes are displayed as dots.
Groping of Layer
- Metal Road
- Unmetal Road
- Water Feature