<?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: Turning on/off a Layer in the TOC Programmatically in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165795#M5327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think Robert has fixed the "issues" with that widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other issues I had were because I was trying to make it do things it was never intended to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty new to this Flex stuff, but you might get some ideas here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Dynamic_Map_Layers_on_off/01nq0000001t000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Dynamic_Map_Layers_on_off/01nq0000001t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 23:03:14 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2012-10-17T23:03:14Z</dc:date>
    <item>
      <title>Turning on/off a Layer in the TOC Programmatically</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165792#M5324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rduke40&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to turn on a layer programmatically within widget code.&amp;nbsp; I want to be able to trigger a layer to turn on programmatically when I click on a widget.&amp;nbsp; The same action that comes from selecting a layer from the layers list is the same action I want to duplicate when selecting a particular widget from the widget list. with&amp;nbsp;&amp;nbsp; For example we have a Zones layer in our TOC list.&amp;nbsp; When you select it, all the different zones will be highlighted on the map. I want to do the exact same thing programmatically when a widget is opened. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a pic of the map before the zones layer is selected: [ATTACH=CONFIG]18460[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a pic of the map after the zones layer is selected: [ATTACH=CONFIG]18461[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to duplicate this programmatically.&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>Tue, 16 Oct 2012 16:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165792#M5324</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-16T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on/off a Layer in the TOC Programmatically</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165793#M5325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The SwipeSpotlight widget has the option to turn on a layer if you select it and it is not visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;perhaps you can get the coding/ideas from that to accomplish what you want.&amp;nbsp; Look in the layerChanged function and askAbout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 17:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165793#M5325</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2012-10-16T17:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on/off a Layer in the TOC Programmatically</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165794#M5326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rduke40&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rzufelt, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I have looked at Robert's Swipe/Spotlight widget and it will not provide a solution for me.&amp;nbsp; I need just to have programmatic control of a sublayer and that widget is unable to do that. I saw that you have had some issues with that widget as well.&amp;nbsp; Can you recommend anything else that might be beneficial?&amp;nbsp; Thanks, Rzufelt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ray&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 19:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165794#M5326</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-17T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on/off a Layer in the TOC Programmatically</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165795#M5327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think Robert has fixed the "issues" with that widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other issues I had were because I was trying to make it do things it was never intended to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty new to this Flex stuff, but you might get some ideas here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Dynamic_Map_Layers_on_off/01nq0000001t000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Dynamic_Map_Layers_on_off/01nq0000001t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 23:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165795#M5327</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2012-10-17T23:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on/off a Layer in the TOC Programmatically</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165796#M5328</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;Just noticed this post:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/2106-Radio-Button-on-off-Layers?"&gt;http://forums.arcgis.com/threads/2106-Radio-Button-on-off-Layers?highlight=remove+listener&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thought you might get some ideas from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 18:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/turning-on-off-a-layer-in-the-toc-programmatically/m-p/165796#M5328</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2012-10-30T18:00:18Z</dc:date>
    </item>
  </channel>
</rss>

