T

587
3
10-31-2016 11:00 AM
LianaSmith
Occasional Contributor II

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!!!!

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

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 

LianaSmith
Occasional Contributor II

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

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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.