Search a map service exposed by the ArcGIS Server REST API based on a string value. The search can be conducted on a single field of a single layer, on many fields of a layer, or on many fields of many layers.
Use FindParameters to set the parameters of the task. The result will be an instance of FindResult.
Known Limitations IdentifyTask is not supported if attempting to be used:
- in a 3D SceneView
- with dynamic layers
Constructors
new FindTask(properties)
properties Object See the properties for a list of all the properties that may be passed into the constructor. |
Property Overview
Name | Type | Summary | |
---|---|---|---|
String | The name of the class. more details | more details | |
String | The geodatabase version. more details | more details | |
Object | The options to be used for data requests. more details | more details | |
String | URL to the ArcGIS Server REST resource that represents a map service. more details | more details |
Property Details
declaredClassStringreadonly
The name of the class. The declared class name is formatted as
esri.folder.className
.gdbVersionString
The geodatabase version.
requestOptionsObject
The options to be used for data requests. These options can also be controlled through the
requestOptions
method parameter.urlString
URL to the ArcGIS Server REST resource that represents a map service.
Method Overview
Name | Return Type | Summary | |
---|---|---|---|
Promise | Sends a request to the ArcGIS REST map service resource to perform a search based on the input params. more details | more details |
Method Details
execute(params, requestOptions){Promise}
Sends a request to the ArcGIS REST map service resource to perform a search based on the input params.
Parameters:params FindParametersSpecifies the layers and fields that are used for the search.
optionalrequestOptions ObjectAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise Resolves to an object with the following properties: Property Type Description results FindResult[] An array of objects containing the result features of the Find task. exceededTransferLimit Boolean exceededTransferLimit is included in the response only if the result exceeded the transfer limit.