if (toLayer != null) { toLayer.InitializationFailed += (s, e) => { }; // to avoid crash if bad layer toLayer.Initialized += (s, e) => { CopyLayerVisibility((Layer)s, toLayer); }; printMap.Layers.Add(toLayer); }
ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer printdynamicService = (ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer)ToLayer; printdynamicService.VisibleLayers = visibleLayerList.ToArray();
myMap.Layers.LayersInitialized += ....
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.