What is a feature layer?

Feature layers are a special type of graphics layer that allow you to display features in a layer hosted by an ArcGIS for Server map service, an ArcGIS for Server feature service, or in a table served by the Spatial Data Service. Like graphics layers, feature layers contain and display graphic features, which consist of geometry and attributes. In addition, feature layers can also provide solutions in the following areas:

The following table highlights feature layer sources supported in this application programming interface (API):

Feature layer source

Description

ArcGIS for Server map service

Dynamic (non-cached) ArcGIS for Server map services can contain feature layers. Each layer is represented by an explicit URL that references the map service name and layer ID assigned by the map service. The URL is usually retrieved using ArcGIS Services Directory.

For example:

http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer/8

The California map service contains a layer with county features assigned the unique id 8.

ArcGIS for Server feature service

ArcGIS for Server feature services reference individual feature layers. Each layer is represented by an explicit URL that references the feature service name and layer ID assigned by the service. The URL is usually retrieved using ArcGIS Services Directory.

For example:

http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/FeatureServer/0

This sample service represents oil and gas fields in the State of Kansas. The Petroleum feature service contains a feature layer with current Kansas field production features assigned the unique ID 0.

ArcGIS for Server feature services support editing when the feature layer is hosted in an ArcSDE geodatabase. Use a feature service to take advantage of symbols and feature templates from the service's source map document.

Spatial Data Service

A spatial data service includes a REST-ful Web service termed the Spatial Data Service. It provides access to tables in databases hosted by a database instance, such as SQL Server. A table can be spatially enabled, which means it has a column that contains geometry.

For example:

http://serverapps.esri.com/SDS/databases/Demo/dbo.USStates_Geographic.

The Demo database contains a spatially-enabled table dbo.USStates_Geographic.

Editing and time awareness are not supported with Spatial Data Service layers at this time.

2/7/2013