I am running a FlexViewer 3.6 which contains a number of operational feature layers. The user is able to turn operational layers on or off using the built in More... button and clicking on or off the appropriate checkbox next to each layer name. I have a custom widget that needs to be able to determine whether an operational layer is Checked On or Off. I have searched all over the place and have realized it the answer is within the viewer and not the map service since I need to current state based on user interaction and not the configured state.
I believe the answer lies in TOC Items but would appreciate any assistance in simplifying this for more. Ultimately an array with the layer id or label and a bit for visible or not is what I am looking for.
Thanks in advance for any help!
Robert.