laptop and a wrench

Bug

MapView.IdentifyLayerAsync returns an exception: "Invalid argument: Identify parameters do not specify a region in the view extent."

Last Published: March 11, 2020 ArcGIS Runtime SDK
Bug ID Number BUG-000129000
SubmittedFebruary 27, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found100.7
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

When using the IdentifyLayerAsync method of the MapView class, the second parameter expects a Point object. The Location property of the GeoViewInputEventArgs returns a MapPoint which is why the error is thrown - the map point x,y values are outside the view extent. To fix this, use the GeoViewInputEventArgs.Position Property to pass in the x,y values into the IdentifyLayerAsync method as shown below: IdentifyLayerResult identifyResult = await MyMapView.IdentifyLayerAsync(layer, new Point(e.Position.X, e.Position.Y), 10, false, 100);

Steps to Reproduce

Bug ID: BUG-000129000

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options