bbarnell

map.addLayers hangs and onLayersAddResult event does not fire reliably

Discussion created by bbarnell on Nov 12, 2012
Latest reply on Nov 12, 2012 by JGravois-esristaff
If the map service URL is spelled wrong, then map.addLayers hangs and the onLayersAddResult event does not fire.  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.  Also, if any part of the first map service URL (bottom most map service) is spelled wrong, it hangs.  Not sure if it makes a difference, but I'm using jQuery with the ESRI API.

Hangs:
http://server.BADPATH.arcgisonline.com/ArcGIS/rest/services/World_Street_Map
http://server.arcgisonline.com/ArcGIS/rest/services/BadName_World_Street_Map (if bottom most map service)

Works:
http://server.arcgisonline.com/ArcGIS/rest/services/BadName_World_Street_Map (if NOT bottom most map service)

Outcomes