<?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 Setting layer visibility using an onClick event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-layer-visibility-using-an-onclick-event/m-p/744310#M68860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a school project where I am trying to alter the visibility of certain layers when people click on various parts of an accordion &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pane in my application.&amp;nbsp; I have it set up to where when an accordion pane panel is clicked, the ID of that panel is recognized and it will reference the updateLayerVisibility function I am trying to get to work. My question, is how do I get the updateLayerVisibility function to recognize the array of layers IDs I have set for by a variable in the function I have that recognizes the clicking of a certain accordion pane panel?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The updateLayerVisibility function I am trying to get to work can be found &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;here,&lt;/A&gt;&lt;SPAN&gt; under &lt;/SPAN&gt;&lt;STRONG&gt;map&lt;/STRONG&gt;&lt;SPAN&gt; and then &lt;/SPAN&gt;&lt;STRONG&gt;toggling layer visibility&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 23:16:42 GMT</pubDate>
    <dc:creator>MattGray</dc:creator>
    <dc:date>2012-11-29T23:16:42Z</dc:date>
    <item>
      <title>Setting layer visibility using an onClick event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-layer-visibility-using-an-onclick-event/m-p/744310#M68860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a school project where I am trying to alter the visibility of certain layers when people click on various parts of an accordion &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pane in my application.&amp;nbsp; I have it set up to where when an accordion pane panel is clicked, the ID of that panel is recognized and it will reference the updateLayerVisibility function I am trying to get to work. My question, is how do I get the updateLayerVisibility function to recognize the array of layers IDs I have set for by a variable in the function I have that recognizes the clicking of a certain accordion pane panel?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The updateLayerVisibility function I am trying to get to work can be found &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;here,&lt;/A&gt;&lt;SPAN&gt; under &lt;/SPAN&gt;&lt;STRONG&gt;map&lt;/STRONG&gt;&lt;SPAN&gt; and then &lt;/SPAN&gt;&lt;STRONG&gt;toggling layer visibility&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 23:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-layer-visibility-using-an-onclick-event/m-p/744310#M68860</guid>
      <dc:creator>MattGray</dc:creator>
      <dc:date>2012-11-29T23:16:42Z</dc:date>
    </item>
  </channel>
</rss>

