<?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 Is there an event when applyEdits - add / update features -  Are ready, and visible on the map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121784#M75449</link>
    <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;Is there an event that will trigger once my updated / added features are visible on the map and ready for interaction?&lt;BR /&gt;&lt;BR /&gt;Once the promise resolves ex:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layer.applyEdits({
    updateFeatures: data
}).then(() =&amp;gt; {
    this.layerLoadedEvent.emit(true);
    r(null);
})&lt;/LI-CODE&gt;&lt;P&gt;I'm still waiting for the features to be visible on the map, is there any event to let me know when everything is ready?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 18:11:13 GMT</pubDate>
    <dc:creator>AndrewMurdoch1</dc:creator>
    <dc:date>2021-12-01T18:11:13Z</dc:date>
    <item>
      <title>Is there an event when applyEdits - add / update features -  Are ready, and visible on the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121784#M75449</link>
      <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;Is there an event that will trigger once my updated / added features are visible on the map and ready for interaction?&lt;BR /&gt;&lt;BR /&gt;Once the promise resolves ex:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layer.applyEdits({
    updateFeatures: data
}).then(() =&amp;gt; {
    this.layerLoadedEvent.emit(true);
    r(null);
})&lt;/LI-CODE&gt;&lt;P&gt;I'm still waiting for the features to be visible on the map, is there any event to let me know when everything is ready?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121784#M75449</guid>
      <dc:creator>AndrewMurdoch1</dc:creator>
      <dc:date>2021-12-01T18:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an event when applyEdits - add / update features -  Are ready, and visible on the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121791#M75450</link>
      <description>&lt;P&gt;If you're looking for an event, try the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#events-summary" target="_self"&gt;edits event&lt;/A&gt;, which fires after &lt;FONT face="courier new,courier"&gt;applyEdits()&lt;/FONT&gt; is completed successfully. If you need to know when the layers are done drawing in the map, try &lt;FONT face="courier new,courier"&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html" target="_self"&gt;watchUtils()&lt;/A&gt;&lt;/FONT&gt;. &lt;A href="https://odoe.net/blog/when-are-layers-done" target="_self"&gt;Here's some more info.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to do something when the &lt;FONT face="courier new,courier"&gt;applyEdits()&lt;/FONT&gt; promise resolves, you should be able to do it in the &lt;FONT face="courier new,courier"&gt;.then&lt;/FONT&gt; like you have it there. &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/" target="_self"&gt;Here's a sample.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121791#M75450</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-01T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an event when applyEdits - add / update features -  Are ready, and visible on the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121831#M75453</link>
      <description>&lt;P&gt;That accomplished exactly what I'm looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 19:26:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-an-event-when-applyedits-add-update/m-p/1121831#M75453</guid>
      <dc:creator>AndrewMurdoch1</dc:creator>
      <dc:date>2021-12-01T19:26:15Z</dc:date>
    </item>
  </channel>
</rss>

