<?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 OnRenderEnd event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214861#M19884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not been able to find any events either on the Map or FeatureLayer objects that can be connected to for when a layer has finished rendering on the map.&amp;nbsp; I have code that sets the Renderer of a FeatureLayer dynamically based on user input.&amp;nbsp; When I call FeatureLayer.redraw() the layer shows the new symbology on the map, but my legend doesn't update until I call legend.refresh().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have wrapped my Renderer code in its own custom widget, which is not aware of the legend.&amp;nbsp; What I would like to do is connect the legend.refresh() to either a map event or layer event.&amp;nbsp; The ideal event would be one that is fired when a layer (or the map) finishes drawing, but I haven't found an event in the API for onDrawEnd of the Map or FeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an event that is fired when a layer or the map finishes drawing even if the extent hasn't changed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 May 2013 20:54:56 GMT</pubDate>
    <dc:creator>BrianBeck</dc:creator>
    <dc:date>2013-05-07T20:54:56Z</dc:date>
    <item>
      <title>OnRenderEnd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214861#M19884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not been able to find any events either on the Map or FeatureLayer objects that can be connected to for when a layer has finished rendering on the map.&amp;nbsp; I have code that sets the Renderer of a FeatureLayer dynamically based on user input.&amp;nbsp; When I call FeatureLayer.redraw() the layer shows the new symbology on the map, but my legend doesn't update until I call legend.refresh().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have wrapped my Renderer code in its own custom widget, which is not aware of the legend.&amp;nbsp; What I would like to do is connect the legend.refresh() to either a map event or layer event.&amp;nbsp; The ideal event would be one that is fired when a layer (or the map) finishes drawing, but I haven't found an event in the API for onDrawEnd of the Map or FeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an event that is fired when a layer or the map finishes drawing even if the extent hasn't changed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 20:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214861#M19884</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2013-05-07T20:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: OnRenderEnd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214862#M19885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you are looking for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#onUpdateEnd"&gt;onUpdateEnd&lt;/A&gt;&lt;SPAN&gt; event of FeatureLayer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please have a look at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/data_gas_prices.html"&gt;this&lt;/A&gt;&lt;SPAN&gt; example and understand how "onUpdateEnd" event is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Niranjan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 06:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214862#M19885</guid>
      <dc:creator>NiranjanBorawake</dc:creator>
      <dc:date>2013-05-08T06:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: OnRenderEnd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214863#M19886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello Brian,&lt;BR /&gt;&lt;BR /&gt;I think you are looking for &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#onUpdateEnd"&gt;onUpdateEnd&lt;/A&gt; event of FeatureLayer. &lt;BR /&gt;&lt;BR /&gt;Please have a look at &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/data_gas_prices.html"&gt;this&lt;/A&gt; example and understand how "onUpdateEnd" event is used.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Niranjan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Niranjan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked into the "onUpdateEnd" event and unfortunately this isn't quite what I need.&amp;nbsp; The "onUpdateEnd" event only occurs when the FeatureLayer content is refreshed.&amp;nbsp; I am using the "redraw" method of the FeatureLayer to redraw the layer with the new symbology because I do not want to requery the server.&amp;nbsp; The "redraw" method does not update content in the FeatureLayer so the "onUpdateEnd" event is not triggered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess what I really need is an "onDrawEnd" event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 15:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onrenderend-event/m-p/214863#M19886</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2013-05-08T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

