laptop and a wrench

Error

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

Última publicación: March 11, 2020 ArcGIS Runtime SDK
Número de ID del error BUG-000129000
EnviadoFebruary 27, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS Runtime SDK
Versión encontrada100.7
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

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);

Pasos para reproducir

ID del error: BUG-000129000

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga