- See also
Method Overview
Name | Return Type | Summary | Function |
---|---|---|---|
Promise<object> | Sends a request to the ArcGIS REST map service resource to perform a search based on the input params. more details | find |
Method Details
-
Sends a request to the ArcGIS REST map service resource to perform a search based on the input params.
Parametersurl StringURL to the ArcGIS Server REST resource that represents a map service.
Autocasts from ObjectSpecifies the layers and fields that are used for the search.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
ReturnsType Description Promise<object> Resolves to an object with the following properties: Property Type Description results FindResult[] An array of objects containing the result features of the find() method. exceededTransferLimit Boolean exceededTransferLimit is included in the response only if the result exceeded the transfer limit. Examplelet params = new FindParameters({ layerIds: [0], searchFields: ["areaname"], outSpatialReference: { wkid: 4326 }, returnGeometry: true }); find(url, params).then(function(results){ // Results contain FindResults of search });