Map Service

Description

A map service offer access to map and layer content.

The REST API administrative map service resource represents a map service. This resource provides basic information about the map, including the layers that it contains, whether the map is cached or not, its spatial reference, initial and full extents, whether the service is allowed to export tiles and max tiles export count, etc. The administrative map service resource maintains a set of operations that manage the state and contents of the service.

Parameters

Parameter

Details

f

Description: The response format. The default response format is html.

Values: html | json | pjson

Example Usage

Example 1: URL for the "USA" map service.

http://services.myserver.com/arcgis/rest/admin/services/WorldService/MapServer?f=pjson

JSON Response Syntax

{
  "name": "<serviceName>",
  "status": <Started | Stopped>, 
  "lodInfos": [
    { "levelID": <layerId>},
    { "tileCount": "<tileCount>"},
    { "expectedTileCount": "<expectedTileCount>"},
    { "tilesSize": "<tilesSize>"},
    { "inProgress": "<true | false>"},
    { "status": "<Complete | InProgress | Canceled | Failed >" }
  ],
}

JSON Response Example

{
  "serverId" : "87fb59a2b0b2442b15f9aa459a46200", 
  "id" : 12345, 
  "name" : "WorldService", 
  "access" : "SECURE", 
  "fullExtent" : {
    "xmin" : -18341650.9613, 
    "ymin" : 2428377.3527, 
    "xmax" : -7454985.1505, 
    "ymax" : 11203410.6593, 
    "spatialReference" : {
      "wkid" : 102100, 
      "latestWkid" : 3857
    }
  }, 
  "initialExtent" : {
    "xmin" : -20645750.6017876, 
    "ymin" : 4752555.08098706, 
    "xmax" : -6019554.68272909, 
    "ymax" : 11906902.7230157, 
    "spatialReference" : {
      "wkid" : 102100, 
      "latestWkid" : 3857
    }
  }, 
  "url" : "http://servicesdev.arcgis.com/87fb59a2b0b2442b15f9aa459a46200/ArcGIS/rest/services/WorldService/MapServer ", 
  "created" : null, 
  "modified" : null, 
  "status"": "STARTED", 
  "jobs" : [
    "61c9ccfb-5b83-4e7d-aec7-cc8c121299f9"
  ], 
  "size" : 19135, 
  "lodInfos" : [
    {
      "levelID" : 3, 
      "tileCount" : 9, 
      "expectedTileCount" : 9, 
      "tilesSize" : 19135, 
      "inProgress" : false, 
      "status" : "COMPLETE"
    }
  ], 
  "cacheExecutionStatus" : "NONE", 
  "minScale" : 591657527.591555, 
  "maxScale" : 18489297.737236, 
  "jobStatus" : null, 
  "currentJob" : "61c9ccfb-5b83-4e7d-aec7-cc8c121299f9", 
  "type" : "MapServer"
}

10/6/2017