void QueryTask_ExecuteCompleted(object sender, ESRI.ArcGIS.Client.Tasks.QueryEventArgs args) { var l = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" }; l.GetDetails(5, (a, b) => { FeatureSet featureSet = args.FeatureSet; featureSet.Fields = a.Fields; if (featureSet != null && featureSet.Features.Count > 0) ResultsJSON.Text = featureSet.ToJson(); else MessageBox.Show("No features returned from query"); }); }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.