<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simple Sublayers in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266811#M8079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I answered my own question...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To have layers automatically show up (mirroring the setup you created in ArcMap), you have to make the type="dynamic" in the layer tag....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 15:26:48 GMT</pubDate>
    <dc:creator>GarrettMoeller</dc:creator>
    <dc:date>2011-02-15T15:26:48Z</dc:date>
    <item>
      <title>Simple Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266810#M8078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I have just begun using the FLEXViewer, I have a simple sublayer setup that I am trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my mapservice...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After going to my &lt;/SPAN&gt;&lt;A href="http://host/ArcGIS/rest/services/samplemapservice/MapServer"&gt;http://host/ArcGIS/rest/services/samplemapservice/MapServer&lt;/A&gt;&lt;SPAN&gt; page, I am able to see the multiple layers that I have along with the associated sublayers....each with a corresponding number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, The goal is to take a layer and it's sublayers and be able to interact with the layers under the "more..." tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I tried just calling upon one of the main layers (#14) which has associated sublayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This did not display sublayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I tried calling the #14 main layer and calling a sublayer (#15) as separate layer tags...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This only made it so that I have two layers and no sublayers...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that I am missing a sublayer tag or something...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, how do I add sublayers in the "more..." drop down?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266810#M8078</guid>
      <dc:creator>GarrettMoeller</dc:creator>
      <dc:date>2011-02-15T15:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266811#M8079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I answered my own question...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To have layers automatically show up (mirroring the setup you created in ArcMap), you have to make the type="dynamic" in the layer tag....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266811#M8079</guid>
      <dc:creator>GarrettMoeller</dc:creator>
      <dc:date>2011-02-15T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266812#M8080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One more question regarding this....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set the layer type to dynamic and take away any specific numbers (referencing a particular feature), all layers show up fine including sublayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want to select only one main layer and have only its sublayers showing, however, I put in that layers reference number at the end of the string and the sublayers do not show up....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to call a dynamic layer and get specific layers within the dynamic layer instead of the entire mapservice it calls upon....example: a layer and its sublayers but not other layers....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266812#M8080</guid>
      <dc:creator>GarrettMoeller</dc:creator>
      <dc:date>2011-02-15T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266813#M8081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One more question regarding this....&lt;BR /&gt;If I set the layer type to dynamic and take away any specific numbers (referencing a particular feature), all layers show up fine including sublayers.&lt;BR /&gt;&lt;BR /&gt;If I want to select only one main layer and have only its sublayers showing, however, I put in that layers reference number at the end of the string and the sublayers do not show up....&lt;BR /&gt;&lt;BR /&gt;How to call a dynamic layer and get specific layers within the dynamic layer instead of the entire mapservice it calls upon....example: a layer and its sublayers but not other layers....&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you want to refer to the entire map service for the url attribute (the one ending in /MapServer without a number), then filter out the layers you don't want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are talking about the default visibility (i.e. which layers you can see when the map first opens) use the visiblelayers attribute as listed here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapps/flexviewer/help/layer_tag.htm"&gt;http://help.arcgis.com/en/webapps/flexviewer/help/layer_tag.htm&lt;/A&gt;&lt;SPAN&gt;. Use the format visiblelayers=�??0,1,2�?� to show the first 3 layers in a service, the numbers correspond to the layer number in REST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want the other layers to not show up in the table of contents at all, you will also need to use the &amp;lt;excludelayer&amp;gt; tag in the MapSwitcher widget (or LayerList widget):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapps/flexviewer/help/widgets/mapswitcher_widget.htm"&gt;http://help.arcgis.com/en/webapps/flexviewer/help/widgets/mapswitcher_widget.htm&lt;/A&gt;&lt;SPAN&gt; Note that you need one &amp;lt;excludelayer&amp;gt; entry for each layer you wish to exclude, and the text you put in between the two tags must exactly match the layer name listed in the map service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266813#M8081</guid>
      <dc:creator>JonFisher</dc:creator>
      <dc:date>2011-02-15T16:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266814#M8082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly what I was looking for...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/simple-sublayers/m-p/266814#M8082</guid>
      <dc:creator>GarrettMoeller</dc:creator>
      <dc:date>2011-02-15T16:12:30Z</dc:date>
    </item>
  </channel>
</rss>

