Select to view content in your preferred language

Identify layer attributes

75
4
Tuesday
czdai
by
Emerging Contributor

I want to know how to implement the new features in SDK 2.2.0. I tried to write it, but I didn't understand its working status. Can you give me an example code.

Thanks.ScreenShot_2025-12-10_145820_284.pngScreenShot_2025-12-10_151111_385.png

0 Kudos
4 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

Sample is coming soon - here's the branch (currently in review): GitHub - Esri/arcgis-maps-sdk-unity-samples at mas12517/Identify-Sample

 

Thanks 

czdai
by
Emerging Contributor

Thank you, this is exactly what I need!

0 Kudos
czdai
by
Emerging Contributor

I found a bug while using the Identify sample. Please refer to the uploaded video for the issue.
Data service address :https://www.arcgis.com/home/item.html?id=dfc65d5eba804f289f1c45ec0628c5ee

 

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

When using that sample watch the results panel. When you get multiple hits, the white arrows becomes enabled and let you scroll through the results, highlighting each one in turn. 

What you're seeing is the expected behavior, where currently the returned result set is ordered by object/feature ID and not by distance from the start point. And so the first result might not be the one nearest the observer. It's on our roadmap to improve this behavior because it's more likely that user expect to see results sorted by distance, or rather the first result should be the nearest. 

In the meantime, try changing the maximumResultsPerLayer parameter from -1 to 1 and you'll just get the first (topmost/nearest) hit. 

https://github.com/Esri/arcgis-maps-sdk-unity-samples/blob/3d4288f8cd8d1cfe8f70b59d1916ba24722c1749/... 

 

0 Kudos