<?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: Fire event when FeatureLayer graphic finishes drawing, not just loaded? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57022#M5001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't tried using this yet but there is an event called update-end which may be what you are after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation states that this is 'Fired when the layer has finished updating its content'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer.html#event-update-end"&gt;https://developers.arcgis.com/javascript/jsapi/featurelayer.html#event-update-end&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Owen&lt;/SPAN&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.spatialxp.com.au"&gt;www.spatialxp.com.au&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 07:18:16 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2014-06-10T07:18:16Z</dc:date>
    <item>
      <title>Fire event when FeatureLayer graphic finishes drawing, not just loaded?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57021#M5000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've seen in the API Reference that FeatureLayer has an event "load", which is "true" when the layer's attributes are ready. Also map has the "layer-add-result" event. However, I have a loading screen covering the map while everything is parsed, and I am trying to take it down once my layer has fully &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;drawn&lt;/SPAN&gt;&lt;SPAN&gt;, not just loaded. Unfortunately all of the events I have experimented with reveal the layer before it draws (it has thousands of rows). Is there an event for FeatureLayer like "graphics-finished"? Thanks for any input!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 22:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57021#M5000</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-06-09T22:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fire event when FeatureLayer graphic finishes drawing, not just loaded?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57022#M5001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't tried using this yet but there is an event called update-end which may be what you are after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation states that this is 'Fired when the layer has finished updating its content'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer.html#event-update-end"&gt;https://developers.arcgis.com/javascript/jsapi/featurelayer.html#event-update-end&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Owen&lt;/SPAN&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.spatialxp.com.au"&gt;www.spatialxp.com.au&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57022#M5001</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-06-10T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fire event when FeatureLayer graphic finishes drawing, not just loaded?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57023#M5002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Owen - Thanks for the input. I did try that, and it works, the only issue is that every time I zoom or pan the event fires, so it's constantly sending the request to take down the loading overlay. There's no real harm done except wasting memory, was hoping there is a neater way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57023#M5002</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-06-10T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fire event when FeatureLayer graphic finishes drawing, not just loaded?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57024#M5003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dojotoolkit.org/reference-guide/1.9/dojo/on.html" rel="nofollow" target="_blank"&gt;dojo on&lt;/A&gt;&lt;SPAN&gt; event gives you some more control over how often it will fire. You can have it fire once, then not fire any more after the map is loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;require(["dojo/on"], function(on){&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; on.once(featurelayer, "update-end", function(){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // will only fire once...&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57024#M5003</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-10T14:56:07Z</dc:date>
    </item>
  </channel>
</rss>

