<?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 Show loading icon when map isn't loaded until later? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-loading-icon-when-map-isn-t-loaded-until/m-p/37599#M3144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All the examples I've seen for showing a loading have a listener set to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onUpdateStart",showLoading);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onUpdateEnd",hideLoading);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My project doesn't load the map at the beginning.&amp;nbsp; Instead, the users runs a query or find which generates a list.&amp;nbsp; Only after the list is displayed do they have the option to see the results of their query/find on a map.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It takes a moment for the page to open.&amp;nbsp; If the user selects a county or enters an address before it's fully initialized, they get errors. I feel like too much is still loading at the beginning.&amp;nbsp; I tried commenting out the dojo.addOnLoad(init) that most examples have because I know I don't need the map until the user makes some sort of selection.&amp;nbsp; Still it seems to be accessing the baselayers right when I start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can add the loading image at start up by putting it in my top borderContainer, but I need to have something else besides the map's onUpdateEnd event to trigger the hideLoading function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wwwgis.dhss.mo.gov/Website/VCFprovider/provider.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://wwwgis.dhss.mo.gov/Website/VCFprovider/provider.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:27:18 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2021-12-10T21:27:18Z</dc:date>
    <item>
      <title>Show loading icon when map isn't loaded until later?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-loading-icon-when-map-isn-t-loaded-until/m-p/37599#M3144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All the examples I've seen for showing a loading have a listener set to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onUpdateStart",showLoading);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onUpdateEnd",hideLoading);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My project doesn't load the map at the beginning.&amp;nbsp; Instead, the users runs a query or find which generates a list.&amp;nbsp; Only after the list is displayed do they have the option to see the results of their query/find on a map.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It takes a moment for the page to open.&amp;nbsp; If the user selects a county or enters an address before it's fully initialized, they get errors. I feel like too much is still loading at the beginning.&amp;nbsp; I tried commenting out the dojo.addOnLoad(init) that most examples have because I know I don't need the map until the user makes some sort of selection.&amp;nbsp; Still it seems to be accessing the baselayers right when I start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can add the loading image at start up by putting it in my top borderContainer, but I need to have something else besides the map's onUpdateEnd event to trigger the hideLoading function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wwwgis.dhss.mo.gov/Website/VCFprovider/provider.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://wwwgis.dhss.mo.gov/Website/VCFprovider/provider.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-loading-icon-when-map-isn-t-loaded-until/m-p/37599#M3144</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-10T21:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show loading icon when map isn't loaded until later?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-loading-icon-when-map-isn-t-loaded-until/m-p/37600#M3145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a loading message in one of my apps that appears when I start the search and then leaves when the results are found. I did this simply with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;grid.showMessage("Loading...");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I placed it above the line that returns the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This may be useful to you, not sure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 14:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-loading-icon-when-map-isn-t-loaded-until/m-p/37600#M3145</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2013-01-07T14:02:41Z</dc:date>
    </item>
  </channel>
</rss>

