getLayer

Function

import { getLayer } from '@esri/arcgis-rest-feature-service';
//
getLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0")
  .then(response) // { name: "311", id: 0, ... }

Layer (Feature Service) request. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
url Required string
requestOptions Optional IRequestOptions

Options for the request.

Returns

Promise<ILayerDefinition> - A Promise that will resolve with the addFeatures response.


Function defined in packages/arcgis-rest-feature-service/src/getLayer.ts:19