Select to view content in your preferred language

Dynamic Map Layers On/Off

848
1
02-10-2011 09:11 AM
DavidLancaster
New Contributor
I am having trouble getting the Dynamic Map Layers to display layers with sub-layers like in a "datatree".  When the data is loaded into the Datagrid it shows the "parent" and "Children" simultaniously.  I would like to be able to turn all of the children (sub-layers) off when the checkmark is removed from the parten checkbox.  additionally I would like to hide/show the children (sub-layers) by clicking on the parent.  Any help direction would be greatley appreciated.

http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=Dynamic_TOC
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
The com.esri.viewer.components.toc.TOC code in the Flex Viewer source map help or the source to this widget:
http://www.arcgis.com/home/item.html?id=e2cb71d5c04d40d19e9f945ae0db7ce8

The Viewer source code can be downloaded from:
http://help.arcgis.com/en/webapps/flexviewer/
0 Kudos