getFeature(requestOptions:Â IGetFeatureOptions): Promise<IFeature>
Get a feature by id.
Use dark colors for code blocks Copy
1
2
3
4
5
6
7
8
9
10
import { getFeature } from '@esri/arcgis-rest-feature-service';
const url = "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0";
getFeature({
url,
id: 42
}).then(feature => {
console.log(feature.attributes.FID); // 42
});
Returns Promise<IFeature>
A Promise that will resolve with the feature or the response itself if rawResponse: true
was passed in.
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