AnsweredAssumed Answered

Layer in Layer List Widget - Enable/Disable

Question asked by tokafil on Mar 24, 2020
Latest reply on Mar 25, 2020 by rscheitlin

Can we disable or enable layers in Layer list widget programmatically. I have a RestAPI where permissions are checked and based on that i need to disable or enable layers in Layer List Widget. 

 

I tried adding below code in showLayers function but it dint work.

this.config.layerOptions["roads_5062"].display = false

Is there any other place i need to set this, Please guide me on this.

 

Thanks in Advance.

Outcomes