<?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 How to tell if an Imagery Layer is drawn in the view in 4.5? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-tell-if-an-imagery-layer-is-drawn-in-the/m-p/105343#M9681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble finding an event to watch for to tell if an imagery layer is drawn/rendered in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am programmatically updating the definition expression/mosaic rule where clause of an imagery layer to allow the user to toggle individual rasters on/off within an image service that includes 100+ rasters. The toggle works alright, but the toggle on from an off state takes 10+ seconds sometimes, so I want to add a spinner to let the user know the raster is drawing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can't figure out what to hook up the 'hide-spinner' event to. I have tried watching the imageryLayer.loaded property, but this becomes true immediately after the toggle is clicked but before the imagery layer actually becomes visible in the view. Similarly, all of the imageryLayer's properties related to its loading (loaded, loadStatus, etc.) fire in the same way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried watching the view and layerview's 'updating' property as well, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2017 23:17:45 GMT</pubDate>
    <dc:creator>AndrewLindley</dc:creator>
    <dc:date>2017-11-09T23:17:45Z</dc:date>
    <item>
      <title>How to tell if an Imagery Layer is drawn in the view in 4.5?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-tell-if-an-imagery-layer-is-drawn-in-the/m-p/105343#M9681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble finding an event to watch for to tell if an imagery layer is drawn/rendered in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am programmatically updating the definition expression/mosaic rule where clause of an imagery layer to allow the user to toggle individual rasters on/off within an image service that includes 100+ rasters. The toggle works alright, but the toggle on from an off state takes 10+ seconds sometimes, so I want to add a spinner to let the user know the raster is drawing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can't figure out what to hook up the 'hide-spinner' event to. I have tried watching the imageryLayer.loaded property, but this becomes true immediately after the toggle is clicked but before the imagery layer actually becomes visible in the view. Similarly, all of the imageryLayer's properties related to its loading (loaded, loadStatus, etc.) fire in the same way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried watching the view and layerview's 'updating' property as well, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 23:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-tell-if-an-imagery-layer-is-drawn-in-the/m-p/105343#M9681</guid>
      <dc:creator>AndrewLindley</dc:creator>
      <dc:date>2017-11-09T23:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell if an Imagery Layer is drawn in the view in 4.5?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-tell-if-an-imagery-layer-is-drawn-in-the/m-p/105344#M9682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: solved! (right after i post about it of course)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;whenLayerView&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;imageryLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerView&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; watchUtils&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;watch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerView&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"updating"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;newVal&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// code to fire&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-tell-if-an-imagery-layer-is-drawn-in-the/m-p/105344#M9682</guid>
      <dc:creator>AndrewLindley</dc:creator>
      <dc:date>2021-12-11T06:25:57Z</dc:date>
    </item>
  </channel>
</rss>

