FRAMES | NO FRAMES Description | Parameters | Examples | Response
Feature - Map Service
URL http://<layer-url>/<featureId>
Parent Resource Layer
Child Resources Attachment Infos, HTML Popup

Description

The feature resource represents a single feature in a layer in a map service.

The feature resource has 2 child resources:

Resource Hierarchy

Feature

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hurricanes/NOAA_Tracks_1851_2007/MapServer/0/1

JSON Response Syntax

{ "feature" : <feature> }

JSON Response Example

{
  "feature" : 
  {
    "attributes" : {
      "OBJECTID" : 1, 
      "BTID" : 1, 
      "NAME" : "NOTNAMED", 
      "LAT" : 28, 
      "LONG" : -94.8, 
      "WIND_KTS" : 80, 
      "PRESSURE" : 0, 
      "CAT" : "H1", 
      "BASIN" : "North Atlantic", 
      "TRACK_DATE" : -3740169600000, 
      "Shape_Length" : 0.600000000000023
    }
    , 
    "geometry" : 
    {
      "paths" : 
      [
        [
          [-94.7999999999999, 28.0000000000001], 
          [-95.3999999999999, 28.0000000000001]
        ]
      ]
    }
  }
}