<?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: Widget &amp;quot;Legend&amp;quot; : Do not display &amp;quot;no legend&amp;quot; by default in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142850#M13320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this piece of code but it didn't work. However this code works (WebAppBuilder 2.10):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #800000;"&gt;div.esriLegendMsg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #0451a5;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Aug 2019 14:19:14 GMT</pubDate>
    <dc:creator>LaurentDedry</dc:creator>
    <dc:date>2019-08-12T14:19:14Z</dc:date>
    <item>
      <title>Widget "Legend" : Do not display "no legend" by default</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142848#M13318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with the Web App Builder 2.10. I customized the legend widget html to display some fixed items (widgets\Legend\Widget.html).&amp;nbsp;I also want to display a dynamic legend. However, by default when no layers are selected, the second part of the widget (the dynamic legend) displays "Pas de légende". How can I remove this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/456802_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 11:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142848#M13318</guid>
      <dc:creator>LaurentDedry</dc:creator>
      <dc:date>2019-08-12T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Widget "Legend" : Do not display "no legend" by default</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142849#M13319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/368042" target="_blank"&gt;Laurent Dedry&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you see this thread: &lt;A href="https://community.esri.com/thread/236973" target="_blank"&gt;Layerlist with a Legend sample&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;The solution there was to suppress the message using CSS:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="selector token"&gt;div.esri-legend__message&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="property token"&gt;display&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; none&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142849#M13319</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2021-12-11T07:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Widget "Legend" : Do not display "no legend" by default</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142850#M13320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this piece of code but it didn't work. However this code works (WebAppBuilder 2.10):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #800000;"&gt;div.esriLegendMsg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #0451a5;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 14:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widget-quot-legend-quot-do-not-display-quot-no/m-p/142850#M13320</guid>
      <dc:creator>LaurentDedry</dc:creator>
      <dc:date>2019-08-12T14:19:14Z</dc:date>
    </item>
  </channel>
</rss>

