<?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: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576153#M53800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;My suggestion is that you reevaluate your workflow. When a parent checkbox is set to false the you get the layers sublayers and do you code logic on the fact that all the parent layers sublayers are now not visible and do not depend on the checkbox change event for the sub layers. I don't think you want to cause the checkbox to toggle on the sublayers as that mean the user would have to re-check the ones they want to be visible each time they un-check the parent and re-check the parent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2018 18:24:05 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-01-31T18:24:05Z</dc:date>
    <item>
      <title>(javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576148#M53795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the layerlist widget (3.23 API) how can I cause all sublayers to be toggle off when the main layer is toggled off&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576148#M53795</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-31T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576149#M53796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Unless I am missing something... When the parent layer is toggled off all its sublayers are toggled off as well.&lt;/P&gt;&lt;P&gt;I just tested this sample to be sure.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_layerlist_basic" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_layerlist_basic"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_layerlist_basic&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576149#M53796</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-31T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576150#M53797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when you turn the main layer off, the sublayers that were active remain&lt;/P&gt;&lt;P&gt;active. I need all of the subLayers to be deselected when the main is&lt;/P&gt;&lt;P&gt;toggled off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Jan 31, 2018 at 11:29 AM, Robert Scheitlin, GISP &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576150#M53797</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-31T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576151#M53798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That is not what I am seeing... If I toggle a parent layer off the the visibility of all sublayers are are turned off as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576151#M53798</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-31T17:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576152#M53799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes...the visibility. but I need the sublayer checkboxes to be toggled off&lt;/P&gt;&lt;P&gt;as well. My code depends on the action of selecting the individual&lt;/P&gt;&lt;P&gt;checkboxes for the sublayers. subLayerIndex returns to null when the&lt;/P&gt;&lt;P&gt;mainlayer is reselected but the sublayer stays visible and the checkbox&lt;/P&gt;&lt;P&gt;remains selected. The user, in this case, would have to deselect the&lt;/P&gt;&lt;P&gt;sublayer and reselect it in order for the code to evaluate properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Jan 31, 2018 at 11:45 AM, Robert Scheitlin, GISP &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576152#M53799</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-31T17:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576153#M53800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;My suggestion is that you reevaluate your workflow. When a parent checkbox is set to false the you get the layers sublayers and do you code logic on the fact that all the parent layers sublayers are now not visible and do not depend on the checkbox change event for the sub layers. I don't think you want to cause the checkbox to toggle on the sublayers as that mean the user would have to re-check the ones they want to be visible each time they un-check the parent and re-check the parent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576153#M53800</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-31T18:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: (javascript 3.23 API) toggle off sublayers when the main layer is toggled off</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576154#M53801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks but I am dealing with many image layers and sublayers and reading&lt;/P&gt;&lt;P&gt;pixel values via a mouse pointer. The pixel value must then be evaluated&lt;/P&gt;&lt;P&gt;using identifytask on the rest service layer relevant to the selected&lt;/P&gt;&lt;P&gt;image. I can see no way to identify the image on the map other than it&lt;/P&gt;&lt;P&gt;having been selected. If all sublayer image references are not nullified,&lt;/P&gt;&lt;P&gt;the user will not be sure which image layer is being evaluated. I have&lt;/P&gt;&lt;P&gt;explored a number of different approaches to this problem but I am unable&lt;/P&gt;&lt;P&gt;to conceive of another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Jan 31, 2018 at 12:25 PM, Robert Scheitlin, GISP &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-3-23-api-toggle-off-sublayers-when-the/m-p/576154#M53801</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-31T18:54:23Z</dc:date>
    </item>
  </channel>
</rss>

