<?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 Group layer: sub-layer visibility in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153719#M3866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to set the visibility of a sub layer of an ArcGISDynamicMapServiceLayer by removing the index of the layer from the VisibleLayers array.&amp;nbsp; I'm able to get this to work for layers that are not part of a group.&amp;nbsp; Is this possible?&amp;nbsp; Can anyone share an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 18:59:28 GMT</pubDate>
    <dc:creator>JamesMolohon</dc:creator>
    <dc:date>2010-04-23T18:59:28Z</dc:date>
    <item>
      <title>Group layer: sub-layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153719#M3866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to set the visibility of a sub layer of an ArcGISDynamicMapServiceLayer by removing the index of the layer from the VisibleLayers array.&amp;nbsp; I'm able to get this to work for layers that are not part of a group.&amp;nbsp; Is this possible?&amp;nbsp; Can anyone share an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 18:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153719#M3866</guid>
      <dc:creator>JamesMolohon</dc:creator>
      <dc:date>2010-04-23T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Setting the sub layer visibility?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153720#M3867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For example, I have a dynamic map service that has layers like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Background (0)&lt;/LI&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Roads Overview (1)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Airport (2)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Parks (3)&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;LI&gt;Buildings (4)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Roads (5)&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to hide the Airport layer, so I removed 2 from the VisibleLayers array, but it is still visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 12:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153720#M3867</guid>
      <dc:creator>JamesMolohon</dc:creator>
      <dc:date>2010-04-28T12:26:03Z</dc:date>
    </item>
    <item>
      <title>Group layer: sub-layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153721#M3868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should work the same way when a sublayer is part of a group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look with Fiddler or Firebug what the url to get the image is. You should see a layers parameter with the list of visible layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Dominique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 14:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153721#M3868</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-04-28T14:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Group layer: sub-layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153722#M3869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The REST interface uses an other "Visibility Management" as the SOAP Interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set the Visibility of a grouplayer to visibile (add the id to the list) all sublayers will be visible. To hide one sublayer, remove the grouplayer id and add each visible sublayer id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Background (0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]VisibleLayer(1)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]VisibleLayer(2)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]InvisibleLayer(3)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If id 0 is in the VisibleLayers array, all sublayers are visible. So remove id 0 and add 1 and 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 13:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153722#M3869</guid>
      <dc:creator>BedaKuster</dc:creator>
      <dc:date>2010-05-20T13:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group layer: sub-layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153723#M3870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks you this was killing me. I couldn't figure out why sublayers that were not on by default kept appearing when I toggled a group layer. I found no documentation about this and it is different than how ArcMap works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 16:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/153723#M3870</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2011-04-07T16:21:58Z</dc:date>
    </item>
  </channel>
</rss>

