Jai
Jai

Reputation: 8363

ArcGIS Runtime: How to identify the topmost feature across all feature layers?

From ArcGIS Runtime Java API documentation, there is an identifyLayersAsync() method.

From documentation:

Asynchronously identifies the topmost visible geo-element in each identifiable layer attached to the map, near given screen point.

Is there a way to for ArcGIS Runtime to return a single geo-element belonging to any layer, such that it is the topmost element?

P.S. Also asked on gis.stackexchange.

Edit

I'm still having this problem. To rephrase it, I need to find out the feature (that belongs to any layer within a list of layers) that the user has clicked on. The feature returned must be feature that the user thought he/she has clicked on (based on visual judgement).

Additionally, the method must work for both maps and scenes.

I'm going to offer bounty on both sites. At this point I'm quite sure that the API doesn't do this out-of-the-box, so I'm looking for work-around solutions.

Upvotes: 3

Views: 272

Answers (1)

Eric Bader
Eric Bader

Reputation: 31

I hope I am understanding your question correctly.

There are a few ways you can identify features:

  • You can specify the layer in the stack that you want to identify features from
  • You can Identify for any feature(s) through the entire list of feature layers
  • You can Identify features from the top-most feature layer only

These options are discussed here https://developers.arcgis.com/java/latest/guide/identify-features.htm#ESRI_SECTION1_75682A92F6FA40779E28B68A151F9092

It sounds like you're looking for the second approach?

Upvotes: 0

Related Questions