So to load a layer is straight forward as taken from the "JavaScript API Concepts" page. Sniplet below...function init() { var layer = new esri.layers.ArcGISDynamicMapServiceLayer(...); dojo.connect(layer, "onLoad", printInitialExtent);}How do you catch an event if the layer never gets loaded? Maybe the service is down. If the layer does not get loaded I want to inform the user (rather than a blank map).
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.