Click or drag to resize

GeoViewIdentifyLayerAsync Method (Layer, Point, Double, Boolean, CancellationToken)

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

Namespace:  Esri.ArcGISRuntime.UI.Controls
Assembly:  Esri.ArcGISRuntime.WPF (in Esri.ArcGISRuntime.WPF.dll) Version: 100.11.0
Syntax
public Task<IdentifyLayerResult> IdentifyLayerAsync(
	Layer layer,
	Point screenPoint,
	double tolerance,
	bool returnPopupsOnly,
	CancellationToken cancellationToken
)

Parameters

layer
Type: Esri.ArcGISRuntime.MappingLayer
The layer on which to run the identify.
screenPoint
Type: System.WindowsPoint
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.
cancellationToken
Type: System.ThreadingCancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

Type: TaskIdentifyLayerResult
A task that represents the asynchronous identify operation on the specified layer. The value of the TResult parameter contains IdentifyLayerResult
See Also