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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.