<?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: Question on Enhanced Layer List Widget &amp;amp;  Feature Layer Tips for Layer visibility in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727934#M21990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; That would depend, are layer 1 and 2 sublayers of a&amp;nbsp; map service or are they whole map services? Basically you&amp;nbsp; need to get the 'map' object and use getLayer to get the Map Service&amp;nbsp; (layer) based on the Map Services id and then if layer 1 is the name&amp;nbsp; of a layer in that map service then you need to set the visibleLayers&amp;nbsp; property for the ArcGISDynamicMapServiceLayer (i.e. remove the id number&amp;nbsp; that represents your layer 1 from the&amp;nbsp; visibleLayers ilist).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 18:31:56 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-08-29T18:31:56Z</dc:date>
    <item>
      <title>Question on Enhanced Layer List Widget &amp;amp;amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727931#M21987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently I use both widgets Enhanced Layer List Widget(&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18"&gt;http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18&lt;/A&gt;&lt;SPAN&gt;) &amp;amp; Feature Layer Tips widget (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=ce63f1bdd5e64068b9a4fadd2028e379"&gt;http://www.arcgis.com/home/item.html?id=ce63f1bdd5e64068b9a4fadd2028e379&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; I would like to know if you turn a zoning layer off (uncheck the layer) and your feature layer will be turn off with a label name "zoning" on your configuration file.&amp;nbsp; Otherwise, your zoning layer will be on (check the layer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone show me where to change to code to perform this task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 15:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727931#M21987</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-08-29T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Enhanced Layer List Widget &amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727932#M21988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am not sure what the eLayerList and the Feature Layer Tips widget have to do with the question about turning the visibility of a particular layer in code?... Can you go into more detial... Are you running into a specific issue that you think is related to these widget?...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 16:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727932#M21988</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-08-29T16:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Enhanced Layer List Widget &amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727933#M21989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These widgets all working well.&amp;nbsp; Thank you for developing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to see whether able to write a code for additional function that can control a layer visibility on TOC.&amp;nbsp; For example, if you uncheck layer 1 (turn off layer 1) then layer 2 will be uncheck (turn off) as well. Otherwise show layer 1 &amp;amp; layer 2 on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope explain it clearly.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727933#M21989</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-08-29T18:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Enhanced Layer List Widget &amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727934#M21990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; That would depend, are layer 1 and 2 sublayers of a&amp;nbsp; map service or are they whole map services? Basically you&amp;nbsp; need to get the 'map' object and use getLayer to get the Map Service&amp;nbsp; (layer) based on the Map Services id and then if layer 1 is the name&amp;nbsp; of a layer in that map service then you need to set the visibleLayers&amp;nbsp; property for the ArcGISDynamicMapServiceLayer (i.e. remove the id number&amp;nbsp; that represents your layer 1 from the&amp;nbsp; visibleLayers ilist).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727934#M21990</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-08-29T18:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Enhanced Layer List Widget &amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727935#M21991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Layer 1 is a sublayer and layer 2 is my feature layer that I used for my feature tooltip widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me some ideas where to add a function that able to check my layer 1 visibility?&amp;nbsp; You got a lot on your TOC folder and just not sure where to start writing my condition to the code.&amp;nbsp; Thank you Robert.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727935#M21991</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-08-29T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Enhanced Layer List Widget &amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727936#M21992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Is layer 1s parent layer an ArcGISDynamicMapServiceLayer? What is its name? Basically in the TOC.as in the registerMapLayer function you would have an if statement that checks if the layer being registered is the parent layer of layer 1 and if so then add an event listener that listens for the visibleLayers property to change and run a function that will search the iList for Layer 1s ID (the number) and if it is not part of the iList then turn off Layer 2. I don't really have time to write a code sample for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example of adding the event listener:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;ArcGISDynamicMapServiceLayer(layer).visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 19:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727936#M21992</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-08-29T19:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Enhanced Layer List Widget &amp;  Feature Layer Tips for Layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727937#M21993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, layer 1 is ArcGISDynamicMapServiceLayer and name it "CITYZONING".&amp;nbsp; I will looks into TOC.as file.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 20:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/question-on-enhanced-layer-list-widget-amp-amp-amp/m-p/727937#M21993</guid>
      <dc:creator>MayJeff</dc:creator>
      <dc:date>2013-08-29T20:30:46Z</dc:date>
    </item>
  </channel>
</rss>

