<?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: Group Visibility when SubLayer is Turned on in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825982#M7860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing the inverse (after select the main group all child are&amp;nbsp;set visible to true. It works but the TOC and the map are not updated until the application refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (evt.ctrlKey) { &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (ckSelect.checked &amp;amp;&amp;amp; layerInfo.newSubLayers.length &amp;gt; 0) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (var i = 0; i &amp;lt; layerInfo.newSubLayers.length; i++) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var layer = layerInfo.newSubLayers&lt;I&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layer._visible = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; }&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone give me some idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2017 12:11:37 GMT</pubDate>
    <dc:creator>deleted-user-0W0-oLHxDjCX</dc:creator>
    <dc:date>2017-01-06T12:11:37Z</dc:date>
    <item>
      <title>Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825976#M7854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone point me to the location where I can add code that if a sublayer is turned on the Group Layer is also turned on in the LayerList?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 11:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825976#M7854</guid>
      <dc:creator>denverweston</dc:creator>
      <dc:date>2015-04-03T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825977#M7855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My solution was to have all the group layers on from the start, whether a sublayer is turned on, or not. Then the user doesn't have to worry about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 15:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825977#M7855</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2015-04-03T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825978#M7856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this would be a helpful enhancement as well. Not only for WAB but for AGOL too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825978#M7856</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-04-07T15:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825979#M7857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Speaking of enhancements, I would like the ability to set a group layer as expanded showing the sublayers on startup. Or if someone knows how to code this? For some of my users, they are only aware of the checkbox, but take awhile to realize clicking on the group name itself will expand the group. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825979#M7857</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2015-04-07T17:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825980#M7858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree that this should be in WAB and AGOL.&amp;nbsp; Sometimes external map services have a lot of group layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825980#M7858</guid>
      <dc:creator>denverweston</dc:creator>
      <dc:date>2015-04-09T17:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825981#M7859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is where I'm starting to look at this possibility in the map service layer info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_setTopLayerVisible: function(visible) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.originOperLayer.layerObject.setVisibility(visible);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._visible = visible;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 18:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825981#M7859</guid>
      <dc:creator>denverweston</dc:creator>
      <dc:date>2015-04-09T18:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Group Visibility when SubLayer is Turned on</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825982#M7860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing the inverse (after select the main group all child are&amp;nbsp;set visible to true. It works but the TOC and the map are not updated until the application refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (evt.ctrlKey) { &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (ckSelect.checked &amp;amp;&amp;amp; layerInfo.newSubLayers.length &amp;gt; 0) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (var i = 0; i &amp;lt; layerInfo.newSubLayers.length; i++) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var layer = layerInfo.newSubLayers&lt;I&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layer._visible = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; }&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone give me some idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 12:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/group-visibility-when-sublayer-is-turned-on/m-p/825982#M7860</guid>
      <dc:creator>deleted-user-0W0-oLHxDjCX</dc:creator>
      <dc:date>2017-01-06T12:11:37Z</dc:date>
    </item>
  </channel>
</rss>

