I need to write a function that will allow me to turn off and turn on layers. By default all layers should be on. I need to add it to the code that I currently have.
Thank you for your help!!!!
Liana,
This type of question as been asked and answered a couple of times:
https://community.esri.com/thread/183992-turn-on-layers-on-widget-start
Thanks Robert. However I need a functionality that will allow to turn off and turn on one layer at a time.. And I need help with specifically my code since I am new to Java Script, overall explanations are not that helpful to me. Thank you
Liana,
You are going to hard pressed to get someone to do the development for you, unless you hire a consultant. The information in the links provided is all that is needed for turning one layer on or off in a WAB app.