Add a layerList dynamically in a Web Appbuilder api 4

433
1
Jump to solution
12-06-2022 06:56 AM
Labels (2)
DavideAristipini
New Contributor

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.

 

0 Kudos
1 Solution

Accepted Solutions
DavideAristipini
New Contributor

This is the solution

this.appConfig.widgetPool.widgets.push(b[0]);

View solution in original post

0 Kudos
1 Reply
DavideAristipini
New Contributor

This is the solution

this.appConfig.widgetPool.widgets.push(b[0]);
0 Kudos