Select to view content in your preferred language

Identify for offline

1967
2
Jump to solution
12-11-2013 02:51 AM
teamIgal
Deactivated User
Hello,

Is there a way to do IdentifyTask in an offline app? Meaning - without URL.

If not, is there a workaround to identify features from layers?

Thanks,
Team Igal
0 Kudos
1 Solution

Accepted Solutions
JasonKnisley
Deactivated User
On your MapView you can set an OnSingleTapListener, and then in your listener's onSingleTap()  method iterate through your layers and call getGraphicIDs() with the x and y from the tap plus whatever tolerance is appropriate (I recommend starting with a tolerance of 15 and adjusting as necessary).

That is assuming that your layers are of type GraphicsLayer or ArcGISFeatureLayer. If you are using the new FeatureLayer class (just introduced in 10.2) then getFeatureIDs() is the equivalent method to use.

View solution in original post

0 Kudos
2 Replies
JasonKnisley
Deactivated User
On your MapView you can set an OnSingleTapListener, and then in your listener's onSingleTap()  method iterate through your layers and call getGraphicIDs() with the x and y from the tap plus whatever tolerance is appropriate (I recommend starting with a tolerance of 15 and adjusting as necessary).

That is assuming that your layers are of type GraphicsLayer or ArcGISFeatureLayer. If you are using the new FeatureLayer class (just introduced in 10.2) then getFeatureIDs() is the equivalent method to use.
0 Kudos
teamIgal
Deactivated User
On your MapView you can set an OnSingleTapListener, and then in your listener's onSingleTap()  method iterate through your layers and call getGraphicIDs() with the x and y from the tap plus whatever tolerance is appropriate (I recommend starting with a tolerance of 15 and adjusting as necessary).

That is assuming that your layers are of type GraphicsLayer or ArcGISFeatureLayer. If you are using the new FeatureLayer class (just introduced in 10.2) then getFeatureIDs() is the equivalent method to use.


Thank you very much, i will try to do that!
0 Kudos