Select to view content in your preferred language

Making dynamic sublayers invisible

641
1
05-09-2012 05:26 AM
CortMcCombs
New Contributor
Hello,

I am wondering how i would make sublayer id 1 and 2 in the following code invisible when first opening the viewer.


                                                     <layer label="Bridges" type="dynamic" visible="true"
     url="http://66.230.72.102/ArcGIS/rest/services/Locals/MapServer/">
      <sublayer id="0" popupconfig="popups/PopUp_Bridgeslocal.xml"/>
      <sublayer id="1" popupconfig="popups/PopUp_PDLocals.xml"/>
      <sublayer id="2" popupconfig="popups/PopUp_PDState.xml"/>
                                                               </layer>

Any help would be appreciated.

Thanks!
Tags (2)
0 Kudos
1 Reply
IvanBespalov
Frequent Contributor
visiblelayers attribute in <layer> tag
visiblelayers �?? Determines the sublayers to show when the application first opens. The default is as specified on the server. Only applies to dynamic, arcims, and wms. It's required for WMS, or no sublayers will be shown.
0 Kudos