<?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: 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/623269#M16042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Christine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I have not made any headway on this - got pulled off of the silverlight project to deal with some issues in our exising .Net ADF application.&amp;nbsp; I'm hoping to get back to the SL project next week, but not sure how much time I'm going to put into this for now - it sounds like either in version 10 SP1 or a SL toolkit release shortly thereafter a TOC class will be available in the &lt;/SPAN&gt;&lt;A href="http://esrisilverlight.codeplex.com/"&gt;ESRI silverlight toolkit&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is that in a mapservice I have grouped layers - say layer 0 is a group and 1 &amp;amp; 2 are child layers in that group.&amp;nbsp; When a user clicks a checkbox assoicated with layer 2, I need to climb back up the layer tree to see if layer 0 is currently in the visiblelayers property of the dynamic service.&amp;nbsp; If it's not then 2 should not be added.&amp;nbsp; Same concept going down the tree - if the user checks the checkbox associated with layer 0 and neither 1 nor 2 are in the VisibleLayers then 0 should not be added to the VisibleLayers .... basically I'm trying to have it work like it does in ArcMap.&amp;nbsp; If memory serves me correct, the SL API will draw layers 1 &amp;amp; 2 if I add 0 to VisibleLayers even without adding 1 &amp;amp; 2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 19:18:46 GMT</pubDate>
    <dc:creator>TerryGiles</dc:creator>
    <dc:date>2010-10-04T19:18:46Z</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/623266#M16039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to modify the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicMap"&gt;sublayer list example&lt;/A&gt;&lt;SPAN&gt; but am having issues as my map service contains group layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the user clicks the checkbox for a sub layer it should only show if the parent (or in my case parent and grandparent) layers are also visible.&amp;nbsp; While a dynamic layer has the ChildLayers property it has no built in concept of ParentLayer.&amp;nbsp; I'm getting stuck on how to recurse up the sublayer tree and visibility of parent/grandparent layers - does anyone else have a code snippet on how to do this efficiently?&amp;nbsp; Thanks, TG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 14:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/623266#M16039</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2010-09-08T14:34:49Z</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/623267#M16040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To better understand how the visible layers property works, try and get a feeling for how the REST endpoint works. See&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/SDK/REST/export.html"&gt;http://services.arcgisonline.com/ArcGIS/SDK/REST/export.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at the "layers" parameter. For each ID you add to the VisibleLayers array, it will get added to the "Show" value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ie VisibleLayers = new int[] { 1,2,3 }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will generate: &amp;amp;layers=show:1,2,3&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/623267#M16040</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-13T14:59:00Z</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/623268#M16041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Terry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you make any progress on this?&amp;nbsp; Can anyone else help.&amp;nbsp; I'm having the same issue and I took a look at the suggested like that SharpGIS suggested and I still can't grasp it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 17:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/623268#M16041</guid>
      <dc:creator>ChristineZeller</dc:creator>
      <dc:date>2010-10-04T17:39:31Z</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/623269#M16042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Christine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I have not made any headway on this - got pulled off of the silverlight project to deal with some issues in our exising .Net ADF application.&amp;nbsp; I'm hoping to get back to the SL project next week, but not sure how much time I'm going to put into this for now - it sounds like either in version 10 SP1 or a SL toolkit release shortly thereafter a TOC class will be available in the &lt;/SPAN&gt;&lt;A href="http://esrisilverlight.codeplex.com/"&gt;ESRI silverlight toolkit&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is that in a mapservice I have grouped layers - say layer 0 is a group and 1 &amp;amp; 2 are child layers in that group.&amp;nbsp; When a user clicks a checkbox assoicated with layer 2, I need to climb back up the layer tree to see if layer 0 is currently in the visiblelayers property of the dynamic service.&amp;nbsp; If it's not then 2 should not be added.&amp;nbsp; Same concept going down the tree - if the user checks the checkbox associated with layer 0 and neither 1 nor 2 are in the VisibleLayers then 0 should not be added to the VisibleLayers .... basically I'm trying to have it work like it does in ArcMap.&amp;nbsp; If memory serves me correct, the SL API will draw layers 1 &amp;amp; 2 if I add 0 to VisibleLayers even without adding 1 &amp;amp; 2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 19:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/623269#M16042</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2010-10-04T19:18:46Z</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/623270#M16043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Terry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having the same issue.&amp;nbsp; I'm using the sublayer list from the interactive SDK and it appears like it isn't honoring the parent/grouping.&amp;nbsp; When the parent/group check box is checked all layers draw (no matter what).&amp;nbsp; When the parent/group is unchecked the child layers draw if they are checked.&amp;nbsp; It seems like it is backwards or something.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 15:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/group-layer-sub-layer-visibility/m-p/623270#M16043</guid>
      <dc:creator>ChristineZeller</dc:creator>
      <dc:date>2010-10-05T15:57:33Z</dc:date>
    </item>
  </channel>
</rss>

