setLayerTimeouts: function() { //setup timeouts for each layer to load this.layerTimeouts = {}; dojo.forEach(this.mapServices, function(svc) { this.layerTimeouts[svc.id] = setTimeout(dojo.partial(this.layerTimeoutHandler, svc), 5000); }, this); }, layerTimeoutHandler: function(mapservice) { logger.warn("failed to load layer "+mapservice.id); mapservice.suspend(); },
Hello All,I'm looking for a way to set the timeout for the addLayers method on esri.Map, similar to the way in which one sets a timeout on esriRequest.When I add a list of mapservices to a Map, and one of them is unresponsive, I have to wait for 60 seconds before the layers-add-result event fires.Can someone please help?Thanks!--john
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.