I am working on a few enhancements to the Map Layers widget, which include having certain layers be expanded by default (referenced in this Community post) and having the layers collapse/expand when the tick box is checked or unchecked. Below, I have a few bugs and enhancements that have hit some roadblocks if anyone has any tips? I will include the ZIP of my current widget so far.
BUGS: I have run into a snag where the legend of layers nested in group layers 3 levels or lower is not displaying (they are visible at the range shown in all images below). The legend icon stays greyed out.