Skip to content

How to work with feature services

To start using feature services, you create the services dynamically with data management tools or scripting APIs. You can import existing datasets (files), define a new dataset, or create (publish) new services from existing services. Each dataset is stored as a feature layer, table, or feature layer view within a feature service. A hosted feature layer (item) is also created for the corresponding service so you can manage and configure the dataset and service settings. To access the service from applications and APIs, you can use the URL and ID assigned by the system. If you are using an ArcGIS Maps SDK, you can also access the service using the hosted layer's item ID.

The general steps to work with feature services are:

1. Create feature layer

To create a feature service, you first need to create a feature layer, feature layer view, or table by importing data. You can import existing datasets from files or define a new dataset.

To create a feature layer:

  • Import data from supported file formats (CSV, shapefile, GeoJSON, etc.)
  • Define a new dataset with custom fields and geometry types
  • Create a feature layer view from an existing feature layer
  • Configure field properties and data types

2. Manage feature service

After creating a feature layer, you can manage the hosted feature layer (item) and service properties. This includes configuring field properties, setting up relationships, and managing service capabilities.

To manage a feature service:

  • Configure field properties and data types
  • Set up relationships between tables
  • Manage service capabilities (query, edit, sync)
  • Configure sharing and access permissions
  • Set up feature layer views for data filtering

3. Access feature service

Once your feature service is created and configured, you can access it from applications and APIs to display or query features.

To access a feature service:

  1. Get the service URL for the feature service you want to access
  2. Set the service URL in your application
  3. Add the layer to a map or query the features
Use the ArcGIS Maps SDK for JavaScript to display a feature layer.
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 JSOpenLayersCesiumJS
Expand
Use dark colors for code blocksCopy
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
      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: uniqueValRender,
      })

      map.add(parcelsLayer)
Expand

Tutorials

Add a vector tile layer

Access and display a vector tile layer in a map.


Add a map tile layer

Access and display a map tile layer in a map.


Query a feature layer (spatial)

Execute a spatial query to get features from a feature layer.


Edit feature data

Add, update, and delete features in a feature service.


Display a popup

Format a popup to show attributes in a feature layer.


Workflows

Services

API support

Use data management tools or Client APIs to create, manage, and access data services. 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
CesiumJS23
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.