<?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: How can I disable visibility of a group layer??? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244076#M6580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, as I mentioned there was probably some core event or function changed in the StemApp that needs the widget and the StemApp to be on the same version. Mixing versions is not a recommended practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 15:50:02 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-11-12T15:50:02Z</dc:date>
    <item>
      <title>How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244068#M6572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!!&lt;/P&gt;&lt;P&gt;I have a problem with group layer on widget LayerList... disable visibility (checkbox) of the layers don't work, neither when I unckeck the group layer that contain the layers that I have disable visibility...&lt;/P&gt;&lt;P&gt;Somebody had this problem?? How can I resolve it???&lt;/P&gt;&lt;TABLE class="gt-baf-table" style="color: #777777; font-family: arial, sans-serif;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2"&gt;&lt;P class="gt-baf-cell gt-baf-word-clickable" style="margin: 1px 0 0 4px; color: #000000;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244068#M6572</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-08-22T12:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244069#M6573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you talking about ArcGIS Desktop, Javascript API, Flex?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a webapplication can you post some code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244069#M6573</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2014-08-22T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244070#M6574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aplication was created by App Builder for Javascript... the widget is LayerList &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244070#M6574</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-08-22T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244071#M6575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some idea??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 10:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244071#M6575</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-12T10:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244072#M6576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have not seen this behavior. Which version of the beta are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244072#M6576</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-12T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244073#M6577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, tanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created my application with AppBuilder Beta 1, but I have replaced only the&amp;nbsp; LayerList widget from Beta 2 and anything changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244073#M6577</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-12T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244074#M6578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am using Beta 3. There is likely things that they changed in the StemApp from Beta 1 to Beta 2 that don't work with you just copying just the LayerListWidget from Beta 2 into Beta 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 15:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244074#M6578</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-12T15:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244075#M6579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you think that if I copy the LayerListWidget from Beta 3 can works??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 15:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244075#M6579</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-12T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244076#M6580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, as I mentioned there was probably some core event or function changed in the StemApp that needs the widget and the StemApp to be on the same version. Mixing versions is not a recommended practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 15:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244076#M6580</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-12T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244077#M6581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what's your recommendation for resolve this problem???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244077#M6581</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-12T16:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244078#M6582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get Beta 3 and just copy your config.json and your widget *.json files into a new Beta 3 App that you build. Unless you have done some actually changes to the stem apps javascript files (the coding files, not just configuration changes), then just moving your configuration changes to a new app will not be hard at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244078#M6582</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-12T16:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244079#M6583</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;I have much changes and customizations in many widgets, so in this case the effort is very high...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to force the toggle of visibility "manually" in the event click. In this event I have the layerInfo of the layer that I want manipulate the visibility. How can I set your visibility only getting the layerInfo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or have an other function that put the ID of my MapService and it do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244079#M6583</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-12T17:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244080#M6584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It was a poor decision to invest that much time in making code changes to a Beta 1. Beta 3 does not have the issue you are speaking of so my advice is to try and find what has changed&amp;nbsp; (a emitted event name change or something) between Beta1 and beyond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244080#M6584</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-12T18:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244081#M6585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Robert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will go try do it!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 19:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244081#M6585</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-13T19:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I disable visibility of a group layer???</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244082#M6586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, people!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem resolved!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I already had replaced the widget Beta 1 by Beta 2, I discovered that a array was being created wrong, including the indexs of groups. So I manipulated this array to remove all index of all groups before send to toggle the visibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This array is manipulated in ...\jimu.js\LayerInfos\LayerInfoForMapService.js, the method is "setSubLayerVisible". Follows the code of my solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Gets the correspondent layer info&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; getLayerInfo: function(layerInfos, id) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layerInfo = null;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; layerInfos.length; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layerInfos&lt;I&gt;.id == id) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfo = layerInfos&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return layerInfo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Removes all indexs of all groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clearVisibleLayers: function(visibleLayers, layerInfos) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myVisibleLayers = lang.clone(visibleLayers);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myLayerInfos = layerInfos;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layerInfo = null;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.forEach(visibleLayers, lang.hitch(this, function(idVisibleLayer){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfo = this.getLayerInfo(myLayerInfos, idVisibleLayer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layerInfo &amp;amp;&amp;amp; layerInfo.subLayerIds != null) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var index = array.indexOf(myVisibleLayers, idVisibleLayer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myVisibleLayers.splice(index, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }), this);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return myVisibleLayers;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setSubLayerVisible: function(subLayerId, visible) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ary = [],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (subLayerId !== null) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Here is the alteration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ary = lang.clone(this.originOperLayer.layerObject.visibleLayers);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ary = this.clearVisibleLayers(ary, this.originOperLayer.layerObject.layerInfos);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index = array.indexOf(ary, subLayerId);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (visible) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (index &amp;lt; 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ary.push(subLayerId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.originOperLayer.layerObject.setVisibleLayers(ary);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (index &amp;gt;= 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ary.splice(index, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ary.length === 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ary.push(-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.originOperLayer.layerObject.setVisibleLayers(ary);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 13:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-can-i-disable-visibility-of-a-group-layer/m-p/244082#M6586</guid>
      <dc:creator>ErikLima</dc:creator>
      <dc:date>2014-11-28T13:16:00Z</dc:date>
    </item>
  </channel>
</rss>

