WAB - custom active / visible layers

1169
2
01-12-2017 08:12 AM
SvivaManager
Occasional Contributor II

Hello,

Does anyone have a code snippet to show an example of how can I switch on a group of layers programmatically in an app when it starts? based on the fact that I know if this group of layers (or just one layer) actually exist in the webmap of course..

I want to try create a "custom group view" of visible layers for users, so I need to start with a simple example of programmatically show a specific layer which I know it exists in the app.

Thanks,

Shay.

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Sviva,

   The LayerToggle button widget would be a place to get code from:

https://community.esri.com/docs/DOC-8592 

SvivaManager
Occasional Contributor II

Great thanks Robert! I'll check it out.

Shay.

0 Kudos