<?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: After grouping layers in the layerlist widget the legend widget does not work in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/after-grouping-layers-in-the-layerlist-widget-the/m-p/738640#M19453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution. It was only necessary to change the code snippet below in the file "... \ widgets \ Legend \ Utils.js".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;var getLayerInfosParamFromCurrentMap = function() &lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var layerInfosParam = [];&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var jimuLayerInfos = LayerInfos.getInstanceSync();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var jimuLayerInfoArray = jimuLayerInfos._layerInfos; //jimuLayerInfos.getLayerInfoArray();&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array.forEach&lt;BR /&gt;&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; ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 13:42:44 GMT</pubDate>
    <dc:creator>GilbertoMatos</dc:creator>
    <dc:date>2017-02-23T13:42:44Z</dc:date>
    <item>
      <title>After grouping layers in the layerlist widget the legend widget does not work</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/after-grouping-layers-in-the-layerlist-widget-the/m-p/738639#M19452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to group my layers in the layerlist widget as I needed it, but the problem is that now, for example, my legend widget always displays "No legends".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running a debug, I realized that the operational layers of the map obviously are no longer in the standard object, but in the clustered one. However, I tried to modify the following lines in the legend widget, but I did not succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;this._jimuLayerInfos = LayerInfos.getInstanceSync();&amp;nbsp; //This line&lt;BR /&gt;var legendParams = &lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrangement: this.config.legend.arrangement,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autoUpdate: this.config.legend.autoUpdate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respectCurrentMapScale: this.config.legend.respectCurrentMapScale,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //respectVisibility: false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: this.map,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfos: this._getLayerInfosParam() ////This line&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For grouping the layers, finally, I used the tip contained in the link below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/174943"&gt;https://community.esri.com/thread/174943&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;BR /&gt;Gilberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:33:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/after-grouping-layers-in-the-layerlist-widget-the/m-p/738639#M19452</guid>
      <dc:creator>GilbertoMatos</dc:creator>
      <dc:date>2017-02-21T19:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: After grouping layers in the layerlist widget the legend widget does not work</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/after-grouping-layers-in-the-layerlist-widget-the/m-p/738640#M19453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution. It was only necessary to change the code snippet below in the file "... \ widgets \ Legend \ Utils.js".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;var getLayerInfosParamFromCurrentMap = function() &lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var layerInfosParam = [];&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var jimuLayerInfos = LayerInfos.getInstanceSync();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var jimuLayerInfoArray = jimuLayerInfos._layerInfos; //jimuLayerInfos.getLayerInfoArray();&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array.forEach&lt;BR /&gt;&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; ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 13:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/after-grouping-layers-in-the-layerlist-widget-the/m-p/738640#M19453</guid>
      <dc:creator>GilbertoMatos</dc:creator>
      <dc:date>2017-02-23T13:42:44Z</dc:date>
    </item>
  </channel>
</rss>

