Layer Groups for Flexviewer Config File

639
1
08-23-2011 09:44 AM
Status: Open
RichardDiaz
New Contributor III
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
1 Comment
NolanAlbarelli

really wish this was a capability in the viewer for flex.  I dont even think it can be done in the JS API either (please correct me if im wrong). 

THis is something I hear A LOT of people asking for - not sure why you cant do it in arcgis online, or other Esri technologies (outside arcmap of course).