<?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 TOC and Group Layer issue!?! in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-and-group-layer-issue/m-p/329697#M7878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, when using the TOC control I am having a issue with group layers which I shall try to explain:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;TOC Contents Example&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DynamicMapService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]GroupLayer[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]NestedGroupLayer[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 1[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 2[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 3[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 4[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in the example above if I update DynamicMapService.visibleLayers to include just Layer1 and Layer2 before loading the TOC then they appear checked as expected and show on the map, but neither NestedGroupLayer or GroupLayer appear checked??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So then If I add the IDs for NestedGroupLayer and GroupLayer into DynamicMapService.visibleLayers they will appear checked in the TOC, but then the map shows all layers (1, 2, 3 and 4) not just 1 and 2???? (If I then uncheck and check either NestedGroupLayer or GroupLayer the map reflects what is shown in the TOC).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this make sense? Can anyone point me to what I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 13:36:17 GMT</pubDate>
    <dc:creator>TonyCollins</dc:creator>
    <dc:date>2011-05-11T13:36:17Z</dc:date>
    <item>
      <title>TOC and Group Layer issue!?!</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-and-group-layer-issue/m-p/329697#M7878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, when using the TOC control I am having a issue with group layers which I shall try to explain:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;TOC Contents Example&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DynamicMapService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]GroupLayer[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]NestedGroupLayer[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 1[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 2[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 3[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT][INDENT]Layer 4[/INDENT][/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in the example above if I update DynamicMapService.visibleLayers to include just Layer1 and Layer2 before loading the TOC then they appear checked as expected and show on the map, but neither NestedGroupLayer or GroupLayer appear checked??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So then If I add the IDs for NestedGroupLayer and GroupLayer into DynamicMapService.visibleLayers they will appear checked in the TOC, but then the map shows all layers (1, 2, 3 and 4) not just 1 and 2???? (If I then uncheck and check either NestedGroupLayer or GroupLayer the map reflects what is shown in the TOC).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this make sense? Can anyone point me to what I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 13:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-and-group-layer-issue/m-p/329697#M7878</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2011-05-11T13:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: TOC and Group Layer issue!?!</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-and-group-layer-issue/m-p/329698#M7879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if you can understand what I am saying above, but I am setting these values from code, not clicking in the TOC..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any direction would be much appreciated and I am happy to describe this in more detail if needed??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 18:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-and-group-layer-issue/m-p/329698#M7879</guid>
      <dc:creator>TonyCollins</dc:creator>
      <dc:date>2011-06-01T18:17:52Z</dc:date>
    </item>
  </channel>
</rss>

