Select to view content in your preferred language

Use Single Grouped Layer in Map Service

2251
1
08-06-2010 08:12 AM
GlenReid
Deactivated User
I have a map service that contains many groups of layers such as:

Group1
  Layer
  Layer
  Layer
Group2
  Layer
  Layer
  Layer

I only want this application to load a specific group (e.g. Group2).  I can find desired group by looping through the LayerInfo, but I don't know how to set it up.  Any ideas?

Thanks,
Glen
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
You can set the dynamic layer's visibleLayers to the ids of the layers you want to show.

Reference:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html#v...
0 Kudos