<?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 Map Spinner never stops for continues updates in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59266#M5213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spinner for map using "update-start" and "update-end".&lt;/P&gt;&lt;P&gt;I have dropdown to select the map service to add on map. The spinner works fine if do not switch the dropdown till the spinner stops on map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add/remove layer when map spinner visible then the spinner never stops. because the last event fired was "update-start" and there is no update-end gets fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This app is developed using arcgis js api 3.20 and angular2.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;yamuna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 14:15:21 GMT</pubDate>
    <dc:creator>YamunadeviRathinasamy</dc:creator>
    <dc:date>2017-08-04T14:15:21Z</dc:date>
    <item>
      <title>Map Spinner never stops for continues updates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59266#M5213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spinner for map using "update-start" and "update-end".&lt;/P&gt;&lt;P&gt;I have dropdown to select the map service to add on map. The spinner works fine if do not switch the dropdown till the spinner stops on map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add/remove layer when map spinner visible then the spinner never stops. because the last event fired was "update-start" and there is no update-end gets fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This app is developed using arcgis js api 3.20 and angular2.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;yamuna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59266#M5213</guid>
      <dc:creator>YamunadeviRathinasamy</dc:creator>
      <dc:date>2017-08-04T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Map Spinner never stops for continues updates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59267#M5214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Yamuna,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; So on your dropdown change event handler make sure you fire the same code/function that gets fired when&amp;nbsp;&lt;SPAN&gt;update-end get fired.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59267#M5214</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-04T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map Spinner never stops for continues updates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59268#M5215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this issue, I think there is actually a bug in the JSAPI. If you remove a layer whilst it is updating then it actually breaks the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"update-start" and "update-end" events, they stop firing completely. I will try and put a test case together at some point but I found with a slow drawing layer, like an image service, the issue was very prevalent. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Anyway, I had to think of a way around it and this is what I came up with:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.layer.setVisibility(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;// set invisible first to ensure spinner stop&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.map.removeLayer(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.layer);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 05:23:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-spinner-never-stops-for-continues-updates/m-p/59268#M5215</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2018-11-26T05:23:32Z</dc:date>
    </item>
  </channel>
</rss>

