Access layers

To access a feature layer, feature layer view, or table in a , you can use the service URL or . To find this information, you need to go to the for the dataset in your . The method you use to access the layer and features depends on the API you are using and whether or not you need to access the settings stored in the (item).

How to access layers

The steps to find and access layers are:

  1. Log in to your portal with your .
  2. In My Content, find your (item).
  3. In the hosted layer , find the service URL or item ID.
  4. Use an API to request features:

Data hosting
Process to access features from feature layer in a feature service.

Service URL

To access the layer in the service directly, use the URL and ID for the layer. Accessing the URL directly gives you access to the layer, but does not give you access to the settings configured in the (item) such as the visualization and styles, data field filters, and popup settings. Using this method you are responsible for requesting and styling features with your API.

1
https://{host}/{organizationID}/ArcGIS/rest/services/{serviceName}/FeatureServer/{id}
ArcGIS Maps SDK for JavaScriptArcGIS Maps SDK for JavaScriptArcGIS Maps SDK for .NETArcGIS Maps SDK for KotlinArcGIS Maps SDK for SwiftArcGIS Maps SDK for JavaArcGIS Maps SDK for QtEsri LeafletMapLibre GL JSOpenLayersArcGIS API for Python
Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
esriConfig.apiKey = "YOUR_ACCESS_TOKEN";

const parcelsLayer = new FeatureLayer({
  url: "https://services3.arcgis.com/GVgbJbqm8hXASVYi/ArcGIS/rest/services/Santa_Monica_Public_Parcels/FeatureServer/0",
  renderer: uvRenderer
});

map.add(parcelsLayer);

Item ID

To access the layer and service through an item, use the portal URL and . Using this approach gives you access to all of the settings stored in the (item). The benefit to this approach is the ArcGIS Maps SDKs can read properties such as the visualization and styles, data field filters, and popup settings, and apply them automatically when the layer is accessed.

1
https://{organizationURL}/sharing/rest/content/items/{hostedLayerItemId}
arcgis-javascript-sdkarcgis-javascript-sdkArcGIS Maps SDK for .NETArcGIS Maps SDK for KotlinArcGIS Maps SDK for SwiftArcGIS Maps SDK for JavaArcGIS Maps SDK for QtArcGIS API for Python
Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
        const parcelsLayer = new FeatureLayer({
          portalItem: {
            id: "b5d71d19fd4b43fbb88abf07773ec0c7"
          }
        });
        map.add(parcelsLayer);

Tutorials

Import data to create a feature layer

Use data management tools to import files and create a feature layer in a feature service.


Define a new feature layer

Use data management tools to define and create a new empty feature layer in a feature service.


Manage a feature layer

Use a hosted feature layer item to set the properties and settings of a feature layer in a feature service.


Create a vector tile service

Use data management tools to create a new vector tile service from a feature service.


Create a map tile service

Use ArcGIS Online or scripting APIs to publish a map tile service.


Workflows

Services

API support

Use or to create, manage, and access . The table below outlines the level of support for each API.

CreateManageAccess
ArcGIS Maps SDK for JavaScript1
ArcGIS Maps SDK for Kotlin1
ArcGIS Maps SDK for Swift1
ArcGIS Maps SDK for Flutter1
ArcGIS Maps SDK for Java1
ArcGIS Maps SDK for .NET1
ArcGIS Maps SDK for Qt1
ArcGIS API for Python
ArcGIS REST JS
Esri Leaflet2
MapLibre GL JS23
OpenLayers23
Full supportPartial supportNo support
  • 1. Use portal class and direct REST API requests
  • 2. Access via ArcGIS REST JS
  • 3. Requires manually setting styles for renderers

Tools

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close