I have developed an application where we turn on the layer visibility programmatically. These layers are on a web map. Now in the layer list widget, I don't want to show all the layers, I just want to show which I have turned on programmatically.
The problem is when I configure layerlist, by default I don't add any layers in there. But now when I make the portal layer visibility true, it does not come up in layerlist widget automatically. How can I achieve this?
Thanks in advance!
Roberts Custom WAB Widgets any suggestions?