<?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 Programmatically Control SubLayer Visibility in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-control-sublayer-visibility/m-p/284847#M8503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map service with several group layers.&amp;nbsp; I am trying to control the visibility of these layers programmatically by adding or removing them from the visibleLayers arrayCollection.&amp;nbsp; It works great with stand alone layers, but if there are subLayers involved I get an unexpected result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the very least all the layers in the groupLayer are visible in the map even though I have explicitly removed certain layers from the visibleLayers AC.&amp;nbsp; Remarkably, the TOC widget correctly shows the visibility, only the map incorrectly shows visibility, which means they are not in sync.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a way to refresh the map or an event to dispatch so that the map will match the TOC widget and correctly display visible layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2011 20:41:36 GMT</pubDate>
    <dc:creator>DanJensen</dc:creator>
    <dc:date>2011-10-13T20:41:36Z</dc:date>
    <item>
      <title>Programmatically Control SubLayer Visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-control-sublayer-visibility/m-p/284847#M8503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map service with several group layers.&amp;nbsp; I am trying to control the visibility of these layers programmatically by adding or removing them from the visibleLayers arrayCollection.&amp;nbsp; It works great with stand alone layers, but if there are subLayers involved I get an unexpected result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the very least all the layers in the groupLayer are visible in the map even though I have explicitly removed certain layers from the visibleLayers AC.&amp;nbsp; Remarkably, the TOC widget correctly shows the visibility, only the map incorrectly shows visibility, which means they are not in sync.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a way to refresh the map or an event to dispatch so that the map will match the TOC widget and correctly display visible layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 20:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-control-sublayer-visibility/m-p/284847#M8503</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2011-10-13T20:41:36Z</dc:date>
    </item>
  </channel>
</rss>

