Mobile Layer

URL:
https://<mobileservice-url>/<layerId>
Methods:
GET
Version Introduced:
10.0

Description

The mobile layer resource represents a single layer in a mobile service published by ArcGIS Server. It provides basic information about the layer such as its ID, name, type, geometry type, fields, extent, data type, and so on.

Request parameters

ParameterDetails

f

The response format. The default response format is html.

Values: html | json

JSON Response syntax

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
{
 "id": <layerId>,
 "name": "<layerName>",
 "type": "<layerType>",
 "description": "<description>",
 "geometryType": "<geometryType>",
 "minScale": <minScale>,
 "maxScale": <maxScale>,
 "extent": <envelope>,
 "dataType": "<dataType>",
 "featureDatasetName": "<featureDatasetName>",
 "featureClassName": "<featureClassName>",
 "displayField": "<displayField>",
 "fields": [
  { "name": "<fieldName1>", "type": "<fieldType1>", "alias": "<fieldAlias1>" },
  { "name": "<fieldName2>", "type": "<fieldType2>", "alias": "<fieldAlias2>" }
 ]
}
{
"error" : {
"code" : <code>,
"message" : "<message>",
"details" : [
"<details>"
]
}
}

JSON Response example

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
{
 "id": 0,
 "name": "wind",
 "type": "Feature Layer",
 "description": "",
 "geometryType": "esriGeometryPoint",
 "minScale": 0,
 "maxScale": 0,
 "extent": {
  "xmin": -84.44, "ymin": 36.82, "xmax": -69.30, "ymax": 44.34,
  "spatialReference": {"wkid": 104000}
 },
 "dataType": "SDE Feature Class",
 "featureDatasetName": "servertest.MAP.JAVASAMPLE_USA",
 "featureClassName": "servertest.MAP.wind",
 "displayField": "ID",
 "fields": [
  { "name": "ID", "type": "esriFieldTypeInteger", "alias": null },
  { "name": "VELOCITY", "type": "esriFieldTypeInteger", "alias": null },
  { "name": "DIRECTION", "type": "esriFieldTypeInteger", "alias": null },
  { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID" }
 ]
}
{"url" : "https://myserver.mydomain.com/arcgis/rest/directories/arcgisoutput/_ags_mobile_588be132a8b94241b79047077731d02f.db"}
{
"error" : {
"code" : -2147024809,
"message" : "Unable to complete operation.",
"details" : [
    "Failed to parse required parameter (version)."
            ]
        }
}

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