I am trying to get a div container to show when a specific layer is turned on and turn off a div once a new layer is selected.
Please see attached I am open to suggestions. Thanks.
Craig Linn you can use esri/domUtils hide and show methods to quickly hide and show a dom node. Here's a link to slightly modified version of your code that shows/hides the layer info depending on the toggled check-box.
http://output.jsbin.com/caxukayoho/1/
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.