getService
import { getService } from '@esri/arcgis-rest-feature-layer';
//
getService({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer"
})
.then(response) // { name: "311", id: 0, ... }
Feature Service request. See the REST Documentation for more information.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
options Required | IGetLayerOptions |
Options for the request. |
Returns
A Promise that will resolve with the getService response.
Property | Type | Notes |
---|---|---|
[key: string]: boolean | ||
boolean |
Boolean value indicating whether the geometry of the features in the layer can be edited. |
|
string |
A comma separated list of supported capabilities, e.g. Query,Editing. |
|
string |
String value for the copyright text information for the layer. |
|
string |
String value of the layer as defined in the map service. |
|
{
|
||
{
|
||
IExtent | ||
boolean | ||
IExtent | ||
boolean | ||
boolean | ||
ILayerDefinition[] | ILayerDefinition | ||
number |
Numeric value indicating tbe maximum number of records that will be returned at once for a query. |
|
[{
|
||
string | ||
ISpatialReference |
An object containing the WKID or WKT identifying the spatial reference of the layer's geometry. |
|
string |
String value indicating the output formats that are supported in a query. |
|
boolean | ||
boolean | ||
boolean | ||
{
|
||
boolean | ||
ITable[] | ITable | ||
string | ||
{
|
||
Optional | number | |
Optional | [key: string]: string | |
Optional | boolean | |
Optional | boolean |
Boolean value indicating whether data changes. True if it does not. |
Optional | boolean | |
Optional | number |
Function defined in packages/arcgis-rest-feature-layer/src/getService.ts:22