Hello, i need to get a button/check box to behave like a radio button: Turn one layer on - results in (all) other layers going off. JavaScript API. I found this:
https://community.esri.com/thread/120571?q=layer%20control%20turn%20one%20layer%20on
but could not get the code to work. Is this functionality at all possible? Any advice received with thanks.
Here's another version that doesn't use the TOC dijit
JS Bin - Collaborative JavaScript Debugging
Something like what you're talking about, but not using the TOC dijit that Rob mentioned.
Edit fiddle - JSFiddle
Simon,
So are you using Liu's TOC widget as that thread discusses? What does your code look like so far?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.