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 };
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.