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/
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.