I would like to add a layerList dynamically in a Web Appbuilder project with api 4.
once the layer list has been created, how do I get it to show on the screen?
let layerList2 = new LayerList(b[0]);
Otherwise I was thinking of using the widgetManager but I can't.
Solved! Go to Solution.
This is the solution
this.appConfig.widgetPool.widgets.push(b[0]);