AnsweredAssumed Answered

Show only layers visible on map in the layerlist

Question asked by akshay.5.loya on May 18, 2018
Latest reply on May 18, 2018 by akshay.5.loya

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?

Outcomes