I am trying to have an 'initialization' window pop up when a user first loads the map application and have it close after all layers are initialized, but I can't seem to find the right event that fires every time to close this window for me.
Say we have a combination of a tiled basemap layer, a dynamic map service layer, and a feature layer, I am wanting to find out when these three layers are finished loading and displayed on screen. It sounds simple, but I am finding that sometimes the intialized events and map.progress events fire unexpectedly, either too early or not at all, depending on the situation. For instance, the dynamic map service layer's initialized event seems to fire before the layer is even displayed on the map, and the problem is worse if the service has to 'wake up' after a period of inactivity.
Can someone try to steer me in the right direction?