Select to view content in your preferred language

onload event problem

797
2
02-19-2014 07:30 AM
EkaitzHernandez
Emerging Contributor
Hi all!

Anybody knows if there is a event like onLoad but instead to fire when basemap layer is loaded fires when all layers are in the DOM.

Thanks!!


Onload documentation: https://developers.arcgis.com/javascript/jsapi/map-amd.html#event-load
0 Kudos
2 Replies
RobWaller
Occasional Contributor
Are you using addLayers to add all at once? That has onLayersAddResult event may be what looking for:

https://developers.arcgis.com/javascript/jsapi/map-amd.html#addlayers

https://developers.arcgis.com/javascript/jsapi/map-amd.html#onLayersAddResult
0 Kudos
EkaitzHernandez
Emerging Contributor
Are you using addLayers to add all at once? That has onLayersAddResult event may be what looking for:

https://developers.arcgis.com/javascript/jsapi/map-amd.html#addlayers

https://developers.arcgis.com/javascript/jsapi/map-amd.html#onLayersAddResult


I am using utils.createMap(webmapid,"div",.... etc
0 Kudos