Select to view content in your preferred language

TOC- Make Only One Layer Visible at a Time

562
1
03-25-2014 10:09 AM
WesAskew
Deactivated User
I am using the table of contents widget written by nliu located at the following link:  http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109.

I was wondering if it is possible to modify the widget to only make one layer visible at a time?  I would like to keep the tree structure of the widget for grouping/ organizational purposes, but force it to be where only one check box in each group layer can be checked at a time.  Does anyone know how I could go about doing this?
0 Kudos
1 Reply
JonathanUihlein
Esri Regular Contributor
You could modify the widget to emit an event when a layer is set to visible (and pass along the ID or reference to that layer).

Then you could set up a listener for that specific event, and hide all other layers based on that.
0 Kudos