<?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: Legend widget remove no legend message in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664763#M62074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is as simple as adding this css rule:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="selector token"&gt;.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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:06:07 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-12T04:06:07Z</dc:date>
    <item>
      <title>Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664762#M62073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on Arabic Javascript Application (API 4.10)&amp;nbsp; &amp;nbsp;with Legend inside the layer list .&amp;nbsp; the code as below at the moment for layerlist&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerList = new LayerList({&lt;BR /&gt; view: view,&lt;BR /&gt; listItemCreatedFunction: function (event) {&lt;BR /&gt; const item = event.item;&lt;BR /&gt; if (item.layer.type != "group"){ // don't show legend twice&lt;BR /&gt; item.panel = {&lt;BR /&gt; content: "legend",&lt;BR /&gt; open: true&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is working fine but it shows No Legend in English for Arabic Application. I want to get rid of "&lt;SPAN&gt;No Legend" default message&amp;nbsp; Information. How Do I do this&amp;nbsp; (I aslo dont wanted to convert that massage data to arabic as user dosnt want) .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to remove it ?&amp;nbsp; Please see screen capture. Kindly help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG alt="No legent message " class="image-1 jive-image j-img-original" src="/legacyfs/online/435897_No legend.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2019 10:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664762#M62073</guid>
      <dc:creator>AnjithaSenarath3</dc:creator>
      <dc:date>2019-01-27T10:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664763#M62074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is as simple as adding this css rule:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="selector token"&gt;.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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664763#M62074</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T04:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664764#M62075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is awesome. Thank you very much Robert&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2019 04:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664764#M62075</guid>
      <dc:creator>AnjithaSenarath3</dc:creator>
      <dc:date>2019-01-28T04:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664765#M62076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;can this also be done for a widget that is created programmatically?&lt;/P&gt;&lt;P&gt;I added your css rule to the .css file of the custom widget that is creating a legend widget. The text is still not hidden.&lt;/P&gt;&lt;P&gt;I am using the 3.x api. Maybe this is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Nevermind I got it. It was:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;.esriLegendMsg { visibility: hidden; }&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664765#M62076</guid>
      <dc:creator>NicolasRoger</dc:creator>
      <dc:date>2019-11-15T17:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664766#M62077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this post. I was able to hide the undesired text from the legend prior to loading the operational layers by adding the display properties for the div in my app as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;/*&amp;nbsp;ALM&amp;nbsp;added&amp;nbsp;custom&amp;nbsp;text&amp;nbsp;to&amp;nbsp;replace&amp;nbsp;'no&amp;nbsp;legend&amp;nbsp;default&amp;nbsp;message&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9c5d27;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;esri_dijit_Legend_0_msg&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, is it possible to &lt;EM&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt; &lt;/EM&gt;the text in the div with a hint such as "Use the Add Layer tool to create the Legend." from the API element (&amp;lt;div id="esri_dijit_Legend_0_msg" class="esriLegendMsg"&amp;gt;No legend&amp;lt;/div&amp;gt;)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions,&lt;BR /&gt;A&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 19:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664766#M62077</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-31T19:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664767#M62078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You can access this through code and change the text using:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getElementById&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'esri_dijit_Legend_0_msg'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;innerHTML &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Blah blah"&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2020 21:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/664767#M62078</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-01-01T21:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Legend widget remove no legend message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/1153477#M76642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am also trying to modify the text "No Legend" to some other text. I am using 3x api. Have tried the suggestion above i.e.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in widget.html added:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;div id="esri_dijit_Legend_0_msg" class="esriLegendMsg"&amp;gt;No legend&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In style.css, added&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;SPAN&gt;esri_dijit_Legend_0_msg&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;display&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;none&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;The above does not turn off the label, therefore I cannot change the text via code also. Am I missing something? Is this feasible ?&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-widget-remove-no-legend-message/m-p/1153477#M76642</guid>
      <dc:creator>RaoSona</dc:creator>
      <dc:date>2022-03-14T18:56:56Z</dc:date>
    </item>
  </channel>
</rss>

