<?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: map.addLayers hangs and onLayersAddResult event does not fire reliably in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-addlayers-hangs-and-onlayersaddresult-event/m-p/525031#M48962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi brad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems appropriate to me that if the application has trouble loading the layer (because the URL is not declared correctly), that the layer won't be added successfully and the onLayersAddResult event isn't going to be triggered.&amp;nbsp; the reason for the hang is because your web browser is attempting to access a resource which it temporarily can't decide exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what would be the reason for supplying a bad path?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2012 15:09:14 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-11-12T15:09:14Z</dc:date>
    <item>
      <title>map.addLayers hangs and onLayersAddResult event does not fire reliably</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-addlayers-hangs-and-onlayersaddresult-event/m-p/525030#M48961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the map service URL is spelled wrong, then map.addLayers hangs and the onLayersAddResult event does not fire.&amp;nbsp; It works fine if only the map service name part of the URL is spelled wrong, but if the path to it is wrong it hangs.&amp;nbsp; Also, if any part of the first map service URL (bottom most map service) is spelled wrong, it hangs.&amp;nbsp; Not sure if it makes a difference, but I'm using jQuery with the ESRI API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hangs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.BADPATH.arcgisonline.com/ArcGIS/rest/services/World_Street_Map"&gt;http://server.BADPATH.arcgisonline.com/ArcGIS/rest/services/World_Street_Map&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/BadName_World_Street_Map"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/BadName_World_Street_Map&lt;/A&gt;&lt;SPAN&gt; (if bottom most map service)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/BadName_World_Street_Map"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/BadName_World_Street_Map&lt;/A&gt;&lt;SPAN&gt; (if NOT bottom most map service)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 14:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-addlayers-hangs-and-onlayersaddresult-event/m-p/525030#M48961</guid>
      <dc:creator>BradBarnell</dc:creator>
      <dc:date>2012-11-12T14:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: map.addLayers hangs and onLayersAddResult event does not fire reliably</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-addlayers-hangs-and-onlayersaddresult-event/m-p/525031#M48962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi brad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems appropriate to me that if the application has trouble loading the layer (because the URL is not declared correctly), that the layer won't be added successfully and the onLayersAddResult event isn't going to be triggered.&amp;nbsp; the reason for the hang is because your web browser is attempting to access a resource which it temporarily can't decide exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what would be the reason for supplying a bad path?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 15:09:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-addlayers-hangs-and-onlayersaddresult-event/m-p/525031#M48962</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-12T15:09:14Z</dc:date>
    </item>
  </channel>
</rss>

