Select to view content in your preferred language

IdentifyLayersAsync tolerance in pixel unit is bad

399
1
04-10-2023 06:56 AM
Labels (2)
noodle
by
Occasional Contributor

I get the following exception when I zoom in due to the tolerance is in pixel unit.   It should be the map unit.  Can you change?

Exception: Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid argument: 'tolerance' must be greater than or equal to zero and less than or equal to 100.
, Exception Message: Invalid argument: 'tolerance' must be greater than or equal to zero and less than or equal to 100.

0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

Identify typically is a user-interaction where you "click" the map, which is why this value is in pixels, so you can always use the same physical screen tolerance without having to adapt to the current map scale.
If you want to do a spatial query with a physical geometry, use the query operations on the feature tables.

0 Kudos