<?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 TOC- Make Only One Layer Visible at a Time in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-make-only-one-layer-visible-at-a-time/m-p/246312#M22824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the table of contents widget written by nliu located at the following link:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if it is possible to modify the widget to only make one layer visible at a time?&amp;nbsp; I would like to keep the tree structure of the widget for grouping/ organizational purposes, but force it to be where only one check box in each group layer can be checked at a time.&amp;nbsp; Does anyone know how I could go about doing this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 17:09:13 GMT</pubDate>
    <dc:creator>WesAskew</dc:creator>
    <dc:date>2014-03-25T17:09:13Z</dc:date>
    <item>
      <title>TOC- Make Only One Layer Visible at a Time</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-make-only-one-layer-visible-at-a-time/m-p/246312#M22824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the table of contents widget written by nliu located at the following link:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if it is possible to modify the widget to only make one layer visible at a time?&amp;nbsp; I would like to keep the tree structure of the widget for grouping/ organizational purposes, but force it to be where only one check box in each group layer can be checked at a time.&amp;nbsp; Does anyone know how I could go about doing this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-make-only-one-layer-visible-at-a-time/m-p/246312#M22824</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-03-25T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: TOC- Make Only One Layer Visible at a Time</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-make-only-one-layer-visible-at-a-time/m-p/246313#M22825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could modify the widget to emit an event when a layer is set to visible (and pass along the ID or reference to that layer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you could set up a listener for that specific event, and hide all other layers based on that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 21:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-make-only-one-layer-visible-at-a-time/m-p/246313#M22825</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-03-26T21:41:37Z</dc:date>
    </item>
  </channel>
</rss>

