getAllLayersAndTables

getAllLayersAndTables

getAllLayersAndTables(optionsIGetLayerOptions): Promise<IAllLayersAndTablesResponse>
Use dark colors for code blocksCopy
     
1
2
3
4
5
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
ParameterTypeNotes
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

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.