<?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: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139666#M76205</link>
    <description>&lt;P&gt;Yes. There is a way to have panel content initialize in an open state. You need to set the &lt;STRONG&gt;open&lt;/STRONG&gt; property on the ListItemPanel to &lt;STRONG&gt;true&lt;/STRONG&gt;. See this example here:&amp;nbsp;&lt;A href="https://codepen.io/kekenes/pen/VwMPaLL?editors=1000" target="_blank"&gt;https://codepen.io/kekenes/pen/VwMPaLL?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically on lines 104-107...&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 00:27:04 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2022-02-02T00:27:04Z</dc:date>
    <item>
      <title>Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139615#M76197</link>
      <description>&lt;P&gt;Working with the ArcGIS API for JavaScript 4.x.&amp;nbsp; When working with the layer list, I am wanting to get the symbology to display under the hide and show layers.&amp;nbsp; Is there any reason why the design is to toggle back and forth, rather than having the hide, show and symbology appear in the same view like the Web App Builder for Developer Edition supports?&amp;nbsp; Please see screenshots.&lt;/P&gt;&lt;P&gt;Screenshot 1 - WAB Developer Edition Layer List with Legend appearing below check boxes (The way I want it to display)&lt;/P&gt;&lt;P&gt;Screenshot 2 - Layer List have to toggle to see legend (Symbology Display Here is where I want the symbology to be placed without having to toggle.&lt;/P&gt;&lt;P&gt;Screenshot 3 - Legend from clicking on the three lines on the layer list.&lt;/P&gt;&lt;P&gt;Can this be done and if so, what am I overlooking?&amp;nbsp; If this cannot be done, has this ever been considered?&lt;/P&gt;&lt;P&gt;Would be nice to turn off and on layers while viewing the symbology at the same time.&amp;nbsp; No need to add extra clicks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 22:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139615#M76197</guid>
      <dc:creator>ipeebles</dc:creator>
      <dc:date>2022-02-01T22:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139666#M76205</link>
      <description>&lt;P&gt;Yes. There is a way to have panel content initialize in an open state. You need to set the &lt;STRONG&gt;open&lt;/STRONG&gt; property on the ListItemPanel to &lt;STRONG&gt;true&lt;/STRONG&gt;. See this example here:&amp;nbsp;&lt;A href="https://codepen.io/kekenes/pen/VwMPaLL?editors=1000" target="_blank"&gt;https://codepen.io/kekenes/pen/VwMPaLL?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically on lines 104-107...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 00:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139666#M76205</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-02-02T00:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139897#M76225</link>
      <description>&lt;P&gt;Thank you Kristian.&amp;nbsp; You have me on the right track.&amp;nbsp; &amp;nbsp;I have been able to get the legend working as part of the layer list.&amp;nbsp; Still learning the 4.x API.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139897#M76225</guid>
      <dc:creator>ipeebles</dc:creator>
      <dc:date>2022-02-02T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139899#M76227</link>
      <description>&lt;P&gt;This only works in the 4.23 API? Does not work in 4.22?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1139899#M76227</guid>
      <dc:creator>ipeebles</dc:creator>
      <dc:date>2022-02-02T16:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1140062#M76235</link>
      <description>&lt;P&gt;Ah. Sorry about that. Yes, opening the panel on load is supported in 4.22. That example is showing the legend for each sublayer in a MapImageLayer. That was not fixed until 4.23, which technically isn't supported yet. You can still display legend for layers at 4.22, but not for sublayers. Here's how it would work at 4.22:&amp;nbsp;&lt;A href="https://codepen.io/kekenes/pen/ExbyPBb?editors=1000" target="_blank"&gt;https://codepen.io/kekenes/pen/ExbyPBb?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 20:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1140062#M76235</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-02-02T20:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1195788#M78061</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unsure if it's better to open a new question, but it is related to above thread... I built my legend in a similar way: As soon as the layer visibility is turned on, the legend becomes visible. B&lt;SPAN&gt;ut I would like to allow the user to see the legend content even if the layer is not visible (on mouse click). I managed to show the legend icon if the layer is not visible, but if I open the legend I see "No legend".&amp;nbsp; How can I display the legend without displaying the layer?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 08:37:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1195788#M78061</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2022-07-26T08:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget with Legend in 4.x - Getting Symbology Under Show and Hide Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1198689#M78154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/205210"&gt;@nadja&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can set the Legend.respectLayerVisibility property to false and the legend content will always display regardless of whether the layer is visible in the view or not. Here's the doc:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully that's what you're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-with-legend-in-4-x-getting/m-p/1198689#M78154</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-08-02T19:14:34Z</dc:date>
    </item>
  </channel>
</rss>

