Click or drag to resize

GeoViewIdentifyLayerAsync Method (Layer, Point, Double, Boolean)

Initiates an identify operation on the specified layer which will return the single visible topmost geolement only.

Namespace:  Esri.ArcGISRuntime.Xamarin.Forms
Assembly:  Esri.ArcGISRuntime.Xamarin.Forms (in Esri.ArcGISRuntime.Xamarin.Forms.dll) Version: 100.7.0.0
Syntax
C#
public Task<IdentifyLayerResult> IdentifyLayerAsync(
	Layer layer,
	Point screenPoint,
	double tolerance,
	bool returnPopupsOnly
)

Parameters

layer
Type: Esri.ArcGISRuntime.MappingLayer
The layer on which to run the identify.
screenPoint
Type: Xamarin.Forms.Point
The location at which to run identify in screen coordinates.
tolerance
Type: SystemDouble
The width and height in screen coordinates of the square centered on screen coordinate that will be used in the identify.
returnPopupsOnly
Type: SystemBoolean
Controls whether the graphics property of the result is populated.

Return Value

Type: TaskIdentifyLayerResult
A task that represents the asynchronous identify operation on the specified layer. The value of the TResult parameter contains IdentifyLayerResult
Exceptions
ExceptionCondition
ArgumentNullExceptionlayer
See Also
Additional Examples
Hyperlink to ExampleDescription
DeleteFeaturesDelete features from an online feature service.
EditFeatureAttachmentsAdd, delete, and download attachments for features from a service.
IdentifyKmlFeaturesThis sample demonstrates how to identify features in a KML layer. Identified feature attributes are displayed in a callout to simulate a popup.
ListRelatedFeaturesList features related to the selected feature.
UpdateAttributesUpdate feature attributes in an online feature service.
UpdateGeometriesUpdate a feature's location in an online feature service.
WmsIdentifyIdentify features in a WMS layer and display the associated popup content.