Select to view content in your preferred language

'Initialized' event for entire map?

983
2
12-15-2011 07:22 AM
BrentStevener
Deactivated User
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?
0 Kudos
2 Replies
BrentStevener
Deactivated User
I went through and cleaned up some code, and I think the initialized event for the dynamic map service works better now, more as expected. I had some code running in another class which might have been interfering.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
You might as well use the LayersInitialized event fired by the map layers collection.
There is a sample here : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ShowMapProperties
0 Kudos