<?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: Programmatically turning on a layer from the TOC menu in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137338#M4533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ray,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This thread may provide some pointers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes"&gt;http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 17:18:00 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2012-08-16T17:18:00Z</dc:date>
    <item>
      <title>Programmatically turning on a layer from the TOC menu</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137337#M4532</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 want to programatically turn on a layer from the TOC menu when a widget is clicked.&amp;nbsp; How would I do that?&amp;nbsp; Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ray&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 16:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137337#M4532</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-08-16T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically turning on a layer from the TOC menu</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137338#M4533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ray,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This thread may provide some pointers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes"&gt;http://forums.arcgis.com/threads/20965-LiveMapsWidget-doesn-t-follow-changes&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 17:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137338#M4533</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-08-16T17:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically turning on a layer from the TOC menu</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137339#M4534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anthony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the link to that post.&amp;nbsp; I do have a question. How does he know what layer to make visible?&amp;nbsp; Is the "Major Roads" a layer in his TOC menu? Would I just pass a string name of the layer to that event listener?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SiteContainer.dispatchEvent(new AppEvent(AppEvent.PROGRAMATIC_LAYER_VISIBILITY_CHANGED, false, false, "Major Roads"));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ray&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/programmatically-turning-on-a-layer-from-the-toc/m-p/137339#M4534</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-08-16T18:45:35Z</dc:date>
    </item>
  </channel>
</rss>

