I would like to see if the FlexViewer team could add the ability to group service layers as we can group Widgets. Here is an example of the proposed change and its use:
<operationallayers>
<layer label="IREMS Real Estate Data" type="dynamic" visible="false" alpha="1.0"
url="
http://YourServerName/ArcGIS/rest/services/LCRA/IREMS_RealEstate_Data_WM/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_LCRA_Easements.xml"/>
<sublayer id="1" popupconfig="popups/PopUp_LCRA_Leases.xml"/>
<sublayer id="2" popupconfig="popups/PopUp_LCRA_Parcels.xml"/>
<sublayer id="3" popupconfig="popups/PopUp_LCRA_Sales.xml"/>
</layer>
<Layergroup label="Transmission Data" visible="true">
<layer label="Circuits" type="dynamic" visible="true" alpha="1.0"
url="
http://YourServerName/ArcGIS/rest/services/Transmission/Tlines_WM/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_Trans_Circuits.xml"/>
</layer>
<layer label="Structures" type="dynamic" visible="true" alpha="1.0"
url="
http://YourServerName/ArcGIS/rest/services/Transmission/Tline_Structures_WM/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_Trans_Structures.xml"/>
</layer>
<layer label="Substations" type="dynamic" visible="true" alpha="1.0"
url="
http://YourServerName/ArcGIS/rest/services/Transmission/Tline_Substations_Point_WM/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_Trans_SubStations.xml"/>
</layer>
</Layergroup>
</operationallayers>
Regards,
Rick Diaz
Austin Texas