Fires when the first or base layer has been successfully added to the map.
onLayerAddResult(layer, error) Fires after specified layer has been added to the map.
try { map = new esri.Map()... } catch (e) { //get error message }
The "stipulation" of successfully loading the base layer onto a map you reference before OnLoad fires is actually the issue I was describing.It wasn't throwing an error I could catch in a try/catch block.I will look into the OnLayerAddResult event.Thank you.
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.