<?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: Detecting the Image is loaded in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detecting-the-image-is-loaded/m-p/1149915#M76559</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Please check out this sample as it shows what you are trying to achieve:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=client-projection" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=client-projection&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The following is the code and it waits until layer's layerView.updating becomes false when the app loads first. The LayerView.updating becomes false once it finishes updating.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.whenLayerView(countriesLayer).then((layerView) =&amp;gt; {
  watchUtils.whenFalseOnce(layerView, "updating", () =&amp;gt; {
    // enable the projection dropdown
    wkidSelect.disabled = false;
    calciteLoader.removeAttribute("active");
   });
 });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 21:24:58 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-03-02T21:24:58Z</dc:date>
    <item>
      <title>Detecting the Image is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detecting-the-image-is-loaded/m-p/1149785#M76553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a question regarding ImageryLayer. It can take awhile to load the Image and I want to remove the spinner when it is done updating. I found this relevant post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-tell-if-an-imagery-layer-is-drawn-in-the/td-p/105343" target="_blank" rel="noopener"&gt;Solved: How to tell if an Imagery Layer is drawn in the vi... - Esri Community&lt;/A&gt;&amp;nbsp;but it doesn't seem to solve my problem. The spinner cuts off before the image is loaded on the map. Any help for ideas on how to get this to work would be appreciated thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 19:05:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detecting-the-image-is-loaded/m-p/1149785#M76553</guid>
      <dc:creator>ColeNewman</dc:creator>
      <dc:date>2022-03-02T19:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting the Image is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detecting-the-image-is-loaded/m-p/1149915#M76559</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Please check out this sample as it shows what you are trying to achieve:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=client-projection" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=client-projection&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The following is the code and it waits until layer's layerView.updating becomes false when the app loads first. The LayerView.updating becomes false once it finishes updating.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.whenLayerView(countriesLayer).then((layerView) =&amp;gt; {
  watchUtils.whenFalseOnce(layerView, "updating", () =&amp;gt; {
    // enable the projection dropdown
    wkidSelect.disabled = false;
    calciteLoader.removeAttribute("active");
   });
 });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 21:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detecting-the-image-is-loaded/m-p/1149915#M76559</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-03-02T21:24:58Z</dc:date>
    </item>
  </channel>
</rss>

