void Graphics_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (e.NewItems != null) { foreach (var item in e.NewItems) { Graphic g = item as Graphic; Graphic clone = new Graphic() { Geometry = Geometry.Clone(g.Geometry), Symbol = g.Symbol }; foreach (var attribute in g.Attributes) clone.Attributes[attribute.Key] = attribute.Value; target.Graphics.Add(clone); } } }
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.