getAllLayersAndTables
FunctiongetAllLayersAndTables(options: IGetLayerOptions): Promise<IAllLayersAndTablesResponse>
- Fetches all the layers and tables associated with a given layer service. Wrapper for https://developers.arcgis.com/rest/services-reference/all-layers-and-tables.htm
import { getAllLayersAndTables } from '@esri/arcgis-rest-feature-service';
getAllLayersAndTables({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0"
})
.then(response) // { layers: [...], tables: [...] }
Parameters
Parameter | Type | Notes |
---|---|---|
options | IGetLayerOptions | Request options, including the url for the layer service |
Returns
Promise<IAllLayersAndTablesResponse>
A Promise that will resolve with the layers and tables for the given service