Identify Task for offline geodatabase

3001
1
12-10-2014 09:26 AM
JoshuaBirappagari
New Contributor

Hi,

In the samples provided, the URI points to external map service below.

// Create a Uri that points to the public ESRI ArcGIS Server map service with the 'Identify' operation supported.

  System.Uri myUri = new System.Uri("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer");

   // Create a new Query.IdentifyTask using the ArcGIS Server map service.

  Esri.ArcGISRuntime.Tasks.Query.IdentifyTask myIdentifyTask = new Esri.ArcGISRuntime.Tasks.Query.IdentifyTask(myUri);

I am working on offline map that uses runtime geodatabase. How do I use Identify Task for offline map.

Thanks

0 Kudos
1 Reply
AnttiKajanus1
Regular Contributor II

If you are using FeatureLayers from geodatabase, you execute QueryAsync against your layer with SpatialQueryFilter.

See sample : arcgis-runtime-samples-dotnet/FeatureLayerSelection.xaml.cs at master · Esri/arcgis-runtime-samples-...

0 Kudos