Reputation: 8363
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.
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
Reputation: 31
I hope I am understanding your question correctly.
There are a few ways you can identify features:
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