AnsweredAssumed Answered

Add and Remove Fetaure layer to WAB

Question asked by aish.12june on Feb 7, 2018
Latest reply on Mar 29, 2018 by brandon.price

I am adding feature layer to the WAB programatically using "map.addLayer("layername") the layer is successfully getting added to the map but it is also adding to the LayerList widget..
and similiarly while removing i am not able to remove it using map.removeLayer as it prevails in layer list widget.
is there anyway i can resolve it and layer list widget dont get involved.

Any help on this highly appreicated