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; } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.