Select to view content in your preferred language

Any way to allow users to toggle layer visibility?

5628
11
01-23-2014 01:09 AM
AliceJarvis
Emerging Contributor
I'm using the Storytelling Text and Legend template. I'd like to show several map layers on a tab and allow the user to turn them on and off - is there any way to do this? e.g. is it possible to use this kind of code: https://developers.arcgis.com/en/javascript/jssamples/map_explicitlayerlist.html
0 Kudos
11 Replies
AliceJarvis
Emerging Contributor
Hi Sherwin,

There's a few bits of code in several files. I've written up some notes (attached) which may help you see how I got things working. My coding is probably not the best or most efficient, but it does work on my site. Good luck...
0 Kudos
FlorianHruby2
Deactivated User
Hi Alice,

I found your notes quite helpful - thank you for sharing!

kind regards,

Flo
0 Kudos