If your graphics are coming from an identify task, you might remove the useless attributes by code by something like: foreach (IdentifyResult identifyResult in args.IdentifyResults) { Graphic graphic = identifyResult.Feature; graphic.Attributes.Remove("Shape"); graphic.Attributes.Remove("ObjectID"); } Not sure it's the best way, but no other idea:)
foreach (IdentifyResult identifyResult in args.IdentifyResults) { Graphic graphic = identifyResult.Feature; graphic.Attributes.Remove("Shape"); graphic.Attributes.Remove("ObjectID"); }
foreach (IdentifyResult result in results) { Graphic feature = result.Feature; string title = result.Value.ToString() + " (" + result.LayerName + ")"; _dataItems.Add(new DataItem() { Title = title, Data = feature.Attributes }); IdentifyComboBox.Items.Add(title); } IdentifyComboBox.SelectedIndex = 0; } }
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.