<?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 error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656010#M61201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to &lt;A _jive_internal="true" href="https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet"&gt;post the code&lt;/A&gt; you are working with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 16:07:47 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2015-03-04T16:07:47Z</dc:date>
    <item>
      <title>legend error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656009#M61200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm programmatically creating legend dijits. Map is loaded. Layer(s) loaded. The error occurs towards the end of _createLegend() method when it's try to set the _msg element innerHTML to NLS_noLegend string saying the _msg element is null. However, if I wrap in a 1 millisecond setTimeout it works fine. Why is this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656009#M61200</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2015-03-04T16:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: legend error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656010#M61201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to &lt;A _jive_internal="true" href="https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet"&gt;post the code&lt;/A&gt; you are working with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656010#M61201</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-03-04T16:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: legend error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656011#M61202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/8586" target="_blank"&gt;Jake Skinner&lt;/A&gt;​ it's a templated widget. I thought it might be a slight delay using put, but using an attach point as srcNodeRef has same behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;initLegend: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; this.legend = new Legend({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: appModel.get('map'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfos: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: this.layerInfo.layer,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: this.layerInfo.layerToggleOptions.title || 'Layer Title'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }, put(this.legendNode, 'div.layerControlLegendWidget'));
&amp;nbsp;&amp;nbsp;&amp;nbsp; this.legend.startup();
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-error/m-p/656011#M61202</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T03:46:43Z</dc:date>
    </item>
  </channel>
</rss>

