getLayer
FunctiongetLayer(options: IGetLayerOptions): Promise<ILayerDefinition>Layer (Feature Service) request. See the REST Documentation for more information.
import { getLayer } from '@esri/arcgis-rest-feature-service';
//
getLayer({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0"
})
.then(response) // { name: "311", id: 0, ... }Parameters
| Parameter | Type | Notes |
|---|---|---|
options | IGetLayerOptions | Options for the request. |
Returns
Promise<ILayerDefinition>A Promise that will resolve with the addFeatures response.