addToServiceDefinition
FunctionaddToServiceDefinition(url: string, requestOptions: IAddToServiceDefinitionOptions): Promise<IAddToServiceDefinitionResult>
Add layer(s) and/or table(s) to a hosted feature service. See the REST Documentation for more information.
import { addToServiceDefinition } from '@esri/arcgis-rest-feature-service';
//
addToServiceDefinition(serviceurl, {
authentication: ArcGISIdentityManager,
layers: [],
tables: []
});
Parameters
Parameter | Type | Notes |
---|---|---|
url | string | URL of feature service |
request | IAddToServiceDefinitionOptions | Options for the request |
Returns
Promise<IAddToServiceDefinitionResult>
A Promise that resolves with service layer and/or table details once the definition has been updated