I'm trying to identify the features in a ArcGISMapImageServiceLayer.
In 10.2.8 I was using QueryTask to query services, but it's been removed in 100 and I cannot seem to find the equivalent. There's no sample code either.
Thanks,
There is a guide here on how to identify layers:
Identify features—ArcGIS Runtime SDK for Android | ArcGIS for Developers
Additionally, you can use GeoView.identidyLayerAsync Method to identify features:
https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/GeoView.html#identifyLayerAsync(com.esri.arcgisruntime.layers.Layer, android.graphics.Point, double, boolean, int)
The layer you are working with is a MapServer layer like : Wildfire (MapServer) ?
Alexander
I'm using Energy/HSEC (MapServer) for testing right now.
Am I bound to use only a Point with tolerance or can I use a Polygon for the selection?
And to execute a search on the image layer, what should I use?
Selection or identify?
Selection can be accomplished by changing the touch listener and using the area created from the touch listener to select features in that area by using a query.
Well, when I identify, I also want to select the features.
The on tap is good with the mapView.identifyLayersAsync as you mentioned.
The problem with the selection is what do I do with my polygon to send it to the service so I can select and identify everything in it?
I also want to search features in a certain image layer. How do I do that?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.