<?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: progress while loading feature layer. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649668#M60597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have mine placed on the map events.&amp;nbsp; This works pretty well since then I don't have to track which type of layer is currently loading.&amp;nbsp;&amp;nbsp; I have a loading image within my mapDiv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;img id="loadingImg" src="images/loading.gif" alt="Loading image" style="position:absolute; left:350px; top:250px; z-index:100;" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var loading = dom.byId("loadingImg");&lt;/P&gt;&lt;P&gt;map.on('update-start', showLoading);&lt;/P&gt;&lt;P&gt;map.on('update-end', hideLoading);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; function showLoading(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils.show(loading);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.disableMapNavigation();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.hideZoomSlider();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function hideLoading(error){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils.hide(loading);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.enableMapNavigation();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.showZoomSlider();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 19:02:49 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2014-07-29T19:02:49Z</dc:date>
    <item>
      <title>progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649665#M60594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to alert the user while a layer is being drawn o the screen...&lt;/P&gt;&lt;P&gt;I have one that is rather large and it take a second or two...I have it scale dependent so it only draws when zoomed far in but is still a bit large...I want them to know for sure that its drawn completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an image that spins but just dont know where to put the code to start and stop (show and hide) this image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var flArchitecture = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://server/arcgis/rest/services/Test/Resources/MapServer/1" rel="nofollow" target="_blank"&gt;https://server/arcgis/rest/services/Test/Resources/MapServer/1&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: FeatureLayer.MODE_ONDEMAND,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate: templateHR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ['*']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.map.addLayer(flArchitecture);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649665#M60594</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-29T18:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649666#M60595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could fire an event that shows your image on &lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#event-update-start"&gt;update-start&lt;/A&gt; and then remove the image on &lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#event-update-end"&gt;update-end&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649666#M60595</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2014-07-29T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649667#M60596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay, this might work for you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/77100"&gt;JS API 3.2 - When do layers render?&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map and the featurelayer both have this property (update-end)&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html" title="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html"&gt;featurelayer-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649667#M60596</guid>
      <dc:creator>KevinDeege</dc:creator>
      <dc:date>2014-07-29T18:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649668#M60597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have mine placed on the map events.&amp;nbsp; This works pretty well since then I don't have to track which type of layer is currently loading.&amp;nbsp;&amp;nbsp; I have a loading image within my mapDiv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;img id="loadingImg" src="images/loading.gif" alt="Loading image" style="position:absolute; left:350px; top:250px; z-index:100;" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var loading = dom.byId("loadingImg");&lt;/P&gt;&lt;P&gt;map.on('update-start', showLoading);&lt;/P&gt;&lt;P&gt;map.on('update-end', hideLoading);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; function showLoading(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils.show(loading);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.disableMapNavigation();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.hideZoomSlider();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function hideLoading(error){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils.hide(loading);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.enableMapNavigation();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.showZoomSlider();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649668#M60597</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-07-29T19:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649669#M60598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank all....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do the below and it breaks....I comment out the 2 "app.map.on" and the image shows up but there is no control to stop it...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a Require that I am missing?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649669#M60598</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-29T19:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649670#M60599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tracy..I think I see it...your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map.on('update-end&lt;STRONG&gt;' ) &lt;/STRONG&gt;, hideLoading);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;you had an extra ) after update-end&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Working now...THANK YOU ALL FOR YOUR THOUGHTS AND HELP&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649670#M60599</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-29T19:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649671#M60600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you figured it out. I was having some very weird behavior with my copy/paste, so I was manually trying to type out the parts that weren't right. I fixed my answer so other people will have the right syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649671#M60600</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-07-29T20:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: progress while loading feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649672#M60601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wanted to give credit to all of you that chimed in on this post.....I thank you all very much....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/progress-while-loading-feature-layer/m-p/649672#M60601</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-30T13:07:56Z</dc:date>
    </item>
  </channel>
</rss>

