laptop and a wrench

Bogue

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

Dernière publication: March 11, 2020 ArcGIS Runtime SDK
Numéro d’ID de bogue BUG-000129000
EnvoiFebruary 27, 2020
Dernière modificationJune 5, 2024
S’applique àArcGIS Runtime SDK
Version trouvée100.7
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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

Étapes pour reproduire

ID de bogue: BUG-000129000

Logiciel:

  • ArcGIS Runtime SDK

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement