Select to view content in your preferred language

loading new dynamicMapServiceLayer, setting up a progress bar

617
0
08-06-2010 08:32 AM
MichaelBlom
Deactivated User
Hi there,

I've got some code where i create a new dynamic layer.  I show a progress bar until the layer has "initialized", at which point i hide the progress bar... problem is, the layer doesn't actually show up on the map after "dynamicLayer.Initialized", it is usually 4 or 5 seconds after this.  Does anyone know how to ensure my progress bar runs until the map layer is visible on the map?

Thanks very much,
Mike

 var dynamicLayer = new ArcGISDynamicMapServiceLayer()
                                   {
                                       Url = layerUrl,
                                       ID = Constants.CLIENT_EXPOSURE_LAYER
                                    };

            dynamicLayer.Initialized += clientLayerLoaded;
0 Kudos
0 Replies