<?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 Legend dijit issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551657#M51459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an issue with the legend dijit in my application. I have a function 'generateRenderer' that generates a renderer and a legend, but this function has to run twice to display the legend. I have attached a simplified code for review. I'll appreciate your help in resolving this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.1 instance with JavaScript 3.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 16:00:47 GMT</pubDate>
    <dc:creator>SamirGambhir</dc:creator>
    <dc:date>2012-12-10T16:00:47Z</dc:date>
    <item>
      <title>Legend dijit issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551657#M51459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an issue with the legend dijit in my application. I have a function 'generateRenderer' that generates a renderer and a legend, but this function has to run twice to display the legend. I have attached a simplified code for review. I'll appreciate your help in resolving this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.1 instance with JavaScript 3.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 16:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551657#M51459</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2012-12-10T16:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Legend dijit issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551658#M51460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all,&lt;BR /&gt;I have an issue with the legend dijit in my application. I have a function 'generateRenderer' that generates a renderer and a legend, but this function has to run twice to display the legend. I have attached a simplified code for review. I'll appreciate your help in resolving this issue.&lt;BR /&gt;I am using ArcGIS Server 10.1 instance with JavaScript 3.2&lt;BR /&gt;Thanks&lt;BR /&gt;Samir&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The attached sample is really simplified and highlights the issue with legend dijit. Can someone please run it and help me resolve this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 17:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551658#M51460</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2012-12-13T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Legend dijit issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551659#M51461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;The attached sample is really simplified and highlights the issue with legend dijit. Can someone please run it and help me resolve this issue?&lt;BR /&gt;Thanks&lt;BR /&gt;Samir&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution to this issue. Creating legendDijit should have been within "onComplete" event of GenerateRendererTask. I had placed this outside.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 17:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551659#M51461</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2012-12-27T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Legend dijit issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551660#M51462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you could have probably created it before and just called legend.refresh() in the oncompleteevent as well&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 18:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-dijit-issue/m-p/551660#M51462</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-12-27T18:12:27Z</dc:date>
    </item>
  </channel>
</rss>

