I need help with the TOC Table of Content ArcScript posted on the arcscript page by Tom Hill. I am developing a Flex app outside of the Flex Viewer. I need to have the Group TOC and the legends. I was already able to put together the website with the map, the group TOC and the legend using the esri Legend component. What I need help is with the following:
1 - Have one layer always visible (in my case the county layer) 2 - Have all the other layers off when another layer (other than the layer that is always visible, the counties layer) is checked on 3- Have the legend pop up for the layer that is checked on (right now I would have the legend visible for all the layers that are checked on, I just need to have one single for the one layer checked on) 4- When there are two sublayers, the legends should be side-by-side not on top of one another vertically
I am attaching the image of my web app, the TOC arcscript I usde for the group TOC and part of the script of my main app so far:
Actually for the legend I would just have one legend (for the map that is showing, the only one checked and visible on the TOC (besides the counties layer that does not need a legend)