A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-feature-service/getLayer/ below:

getLayer | ArcGIS REST JS

getLayer Function getLayer(options: IGetLayerOptions): Promise<ILayerDefinition>

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

Use dark colors for code blocks Copy

1
2
3
4
5
6
import { getLayer } from '@esri/arcgis-rest-feature-service';
//
getLayer({
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0"
})
  .then(response) // { name: "311", id: 0, ... }
Returns Promise<ILayerDefinition>

A Promise that will resolve with the addFeatures response.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4