import { identify } from "@arcgis/core/rest/identify.js";const { identify } = await $arcgis.import("@arcgis/core/rest/identify.js");- Since
- ArcGIS Maps SDK for JavaScript 4.19
Performs an identify operation on the layers of a map service exposed by the ArcGIS Server REST API. Use IdentifyParameters to set the parameters for the identify operation and IdentifyResult to work with the results.
Known Limitations
The identify operation is currently not supported if attempting to be used in a 3D SceneView
Type definitions
IdentifyResults
The results returned from the identify() operation.
results
- Type
- IdentifyResult[]
An array of objects containing the result features of the Identify task.
Functions
| Name | Return Type | Object |
|---|---|---|
| | |
| |
identify
Sends a request to the ArcGIS REST map service resource to identify features based on the IdentifyParameters specified.
- Signature
-
identify (url: string, params: IdentifyParameters, requestOptions?: RequestOptions): Promise<IdentifyResults>
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| url | URL to the ArcGIS Server REST resource that represents a map service. | | |
| params | Specifies the criteria used to identify the features. | | |
| requestOptions | Additional options to be used for the data request. | |
- Returns
- Promise<IdentifyResults>