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); } } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.