<?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 Delay in getting layers image on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delay-in-getting-layers-image-on-the-map/m-p/1572028#M86305</link>
    <description>&lt;P&gt;I am using the JavaScript API to check if the&amp;nbsp;&amp;nbsp;view is created for all the layers and based on it I am showing a spinner in my application to indicate the end user that the layer loading is in progress and once the layer are loaded the spinner is stopped.&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;whenLayerView method but the internal API which renders the layers image takes time and&amp;nbsp;&lt;BR /&gt;I do not have any control to show the application loading state.&lt;BR /&gt;Please suggest which method I can use here to have access to an event for displaying a loading state in the browser until the layers image is fetched.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version -&amp;nbsp;&lt;SPAN&gt;4.26.0&lt;BR /&gt;&lt;STRONG&gt;Reference -&amp;nbsp;&lt;A title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-view.html#whenlayerview" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView" target="_blank" rel="noreferrer noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-view.html#whenlayerview" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView" target="_blank" rel="noreferrer noopener"&gt;&lt;STRONG&gt;Image API - /MapServer/export?bbox=-13672105.657400718%2C7676081.658810125%2C-12602598.757634586%2C7925572.119132928&amp;amp;bboxSR=102100&amp;amp;imageSR=102100&amp;amp;size=1749%2C408&amp;amp;dpi=96&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;layers=show%3A0%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13&amp;amp;f=image&lt;/STRONG&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 05:09:43 GMT</pubDate>
    <dc:creator>SaurabhDudhe</dc:creator>
    <dc:date>2025-01-02T05:09:43Z</dc:date>
    <item>
      <title>Delay in getting layers image on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delay-in-getting-layers-image-on-the-map/m-p/1572028#M86305</link>
      <description>&lt;P&gt;I am using the JavaScript API to check if the&amp;nbsp;&amp;nbsp;view is created for all the layers and based on it I am showing a spinner in my application to indicate the end user that the layer loading is in progress and once the layer are loaded the spinner is stopped.&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;whenLayerView method but the internal API which renders the layers image takes time and&amp;nbsp;&lt;BR /&gt;I do not have any control to show the application loading state.&lt;BR /&gt;Please suggest which method I can use here to have access to an event for displaying a loading state in the browser until the layers image is fetched.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version -&amp;nbsp;&lt;SPAN&gt;4.26.0&lt;BR /&gt;&lt;STRONG&gt;Reference -&amp;nbsp;&lt;A title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-view.html#whenlayerview" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView" target="_blank" rel="noreferrer noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-view.html#whenlayerview" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView" target="_blank" rel="noreferrer noopener"&gt;&lt;STRONG&gt;Image API - /MapServer/export?bbox=-13672105.657400718%2C7676081.658810125%2C-12602598.757634586%2C7925572.119132928&amp;amp;bboxSR=102100&amp;amp;imageSR=102100&amp;amp;size=1749%2C408&amp;amp;dpi=96&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;layers=show%3A0%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13&amp;amp;f=image&lt;/STRONG&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 05:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delay-in-getting-layers-image-on-the-map/m-p/1572028#M86305</guid>
      <dc:creator>SaurabhDudhe</dc:creator>
      <dc:date>2025-01-02T05:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delay in getting layers image on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delay-in-getting-layers-image-on-the-map/m-p/1572977#M86335</link>
      <description>&lt;P&gt;I would recommend &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#watch" target="_self"&gt;watching&lt;/A&gt; the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#updating" target="_self"&gt;updating&lt;/A&gt; property on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html" target="_self"&gt;View&lt;/A&gt;.&amp;nbsp; For example:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.watch("updating", function(newValue, oldValue, propertyName, target) {
	activityIndicator.style.display = ((newValue) ? "inline" : "none");
});&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Jan 2025 22:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delay-in-getting-layers-image-on-the-map/m-p/1572977#M86335</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-01-06T22:44:38Z</dc:date>
    </item>
  </channel>
</rss>

