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 += ....
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.