<?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/Feature Service Loading/Error Handling in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/map-feature-service-loading-error-handling/m-p/855586#M216</link>
    <description>&lt;P&gt;I've been working on a solution to deal with map/feature services not loading on a map.&amp;nbsp; Sometimes ArcGIS for Server has hiccups.&amp;nbsp; I also wanted to have a loading screen disappear after the layers load.&amp;nbsp; I have a &lt;A href="https://codepen.io/pmckinney/pen/XVJezp" target="_blank"&gt;CodePen&lt;/A&gt; demo with my solution. I'm looking for feedback (positive and negative).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added a property, &lt;STRONG&gt;isLoaded&lt;/STRONG&gt;, that stores a boolean for whether they layer has been loaded or not.&amp;nbsp; It is initially false, and during the "&lt;STRONG&gt;load&lt;/STRONG&gt;" event, is changed to true.&amp;nbsp; It is set to false during the "&lt;STRONG&gt;requesterror&lt;/STRONG&gt;" event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then have an interval timer that checks whether the &lt;STRONG&gt;isLoaded&lt;/STRONG&gt; property for all layers is true. If it is, then the loading screen is removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;During the "&lt;STRONG&gt;requesterror&lt;/STRONG&gt;" event, I add some html to a hidden element (modal) that stores an error message.&amp;nbsp; This element is then displayed. Upon closing the modal, the loading screen is removed.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 13:00:27 GMT</pubDate>
    <dc:creator>PatrickMcKinney1</dc:creator>
    <dc:date>2023-08-28T13:00:27Z</dc:date>
    <item>
      <title>Map/Feature Service Loading/Error Handling</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/map-feature-service-loading-error-handling/m-p/855586#M216</link>
      <description>&lt;P&gt;I've been working on a solution to deal with map/feature services not loading on a map.&amp;nbsp; Sometimes ArcGIS for Server has hiccups.&amp;nbsp; I also wanted to have a loading screen disappear after the layers load.&amp;nbsp; I have a &lt;A href="https://codepen.io/pmckinney/pen/XVJezp" target="_blank"&gt;CodePen&lt;/A&gt; demo with my solution. I'm looking for feedback (positive and negative).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added a property, &lt;STRONG&gt;isLoaded&lt;/STRONG&gt;, that stores a boolean for whether they layer has been loaded or not.&amp;nbsp; It is initially false, and during the "&lt;STRONG&gt;load&lt;/STRONG&gt;" event, is changed to true.&amp;nbsp; It is set to false during the "&lt;STRONG&gt;requesterror&lt;/STRONG&gt;" event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then have an interval timer that checks whether the &lt;STRONG&gt;isLoaded&lt;/STRONG&gt; property for all layers is true. If it is, then the loading screen is removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;During the "&lt;STRONG&gt;requesterror&lt;/STRONG&gt;" event, I add some html to a hidden element (modal) that stores an error message.&amp;nbsp; This element is then displayed. Upon closing the modal, the loading screen is removed.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/map-feature-service-loading-error-handling/m-p/855586#M216</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2023-08-28T13:00:27Z</dc:date>
    </item>
  </channel>
</rss>

