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 };
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.