AnsweredAssumed Answered

IdentifyTask on ShapefileTable

Question asked by davezap on Oct 22, 2014
Latest reply on Dec 1, 2015 by CITC_KSA

Hi was wondering if any one can help me with this?


The example linked here - Code Example - IdentifyTask


Shows how to perform a hit test with the mouse on features in layers of a MapView


Can this also be done without having to reference a serviceURI using Esri.ArcGISRuntime.Tasks.Query.IdentifyTask(...)  as all my data is from local storage shape files and not from a server.


I see the Layer.HitTestAsync() but this seems limited in functionality.


Loading shape files as follows..


Esri.ArcGISRuntime.Data.ShapefileTable mySFT = await Esri.ArcGISRuntime.Data.ShapefileTable.OpenAsync("C:\\blabla.shp");

var myQueryFilter = new Esri.ArcGISRuntime.Data.QueryFilter();

myQueryFilter.WhereClause = "1=1";

var Mines = mySFT.QueryAsync(myQueryFilter);

var myLayer = new Esri.ArcGISRuntime.Layers.FeatureLayer(mySFT);

myLayer.ID = "layer_id";