Error: Property or indexer 'Attributes' cannot be assigned to -- it is read only
Graphic g= new Graphic() { Symbol = selectedGraphic.Symbol, Geometry = selectedGraphic.Geometry, //I did not find clone so is this right } foreach (var kvp in selectedGraphic.Attributes) { g.Attributes.Add(kvp); }
var newGraphic = new Graphic { Symbol = oldGraphic.Symbol, Geometry = Geometry.Clone(oldGraphic.Geometry), Attributes = oldGraphic.Attributes };
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.