LayerCollection layerCollection = new LayerCollection(); foreach (Layer layer in a.Map.Layers) layerCollection.Add(layer); a.Map.Layers.Clear(); MyMap.Layers = layerCollection;
var layers = a.Map.Layers.ToArray(); a.Map.Layers.Clear(); foreach(var layer in layers) MyMap.Layers.Add(layer);
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.