I'm fairly new to the JS API and I'm working on an extension of StoryMaps app in ArcGIS.
I want to create a toggle on/off for webmaps and I was following up on the code provided by Kelly to a discussion thread.
My webpage where the app works for now is: Create a Web Map.
If you try to toggle layers on/off then, it doesn't work. Can anyone help me?