ESM: import * as find from "@arcgis/core/rest/find.js";
CDN: const find = await $arcgis.import("@arcgis/core/rest/find.js");
Object: @arcgis/core/rest/find
Since: ArcGIS Maps SDK for JavaScript 4.19
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 method. The result will be an instance of FindResult.
Known Limitations
The find operation is currently not supported if attempting to be used:
Sends a request to the ArcGIS REST map service resource to perform a search based on the input params.
find Method Details find(url, params, requestOptions){Promise<Object>}
Sends a request to the ArcGIS REST map service resource to perform a search based on the input params.
Parameters
URL to the ArcGIS Server REST resource that represents a map service.
Specifies the layers and fields that are used for the search.
optionalAdditional options to be used for the data request.
Returns
Type 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.Example
let params = new FindParameters({
layerIds: [0],
searchFields: ["areaname"],
outSpatialReference: { wkid: 4326 },
returnGeometry: true
});
find(url, params).then(function(results){
// Results contain FindResults of search
});
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4