This page describes an older version, please see latest API at http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/supportClasses/LayerDetails.html.
Packagecom.esri.ags.layers.supportClasses
Classpublic class LayerDetails
InheritanceLayerDetails Inheritance flash.events.EventDispatcher
Subclasses FeatureLayerDetails

Contains detailed information about a layer in a map service. This is equivalent to the detailed information in the Services Directory, for example http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer/1.

See also

com.esri.ags.layers.ArcGISDynamicMapServiceLayer.getDetails()
com.esri.ags.layers.ArcGISTiledMapServiceLayer.getDetails()
com.esri.ags.layers.FeatureLayer.layerDetails
com.esri.ags.tasks.DetailsTask.getDetails()
AllDetails


Public Properties
 PropertyDefined By
  capabilities : Array
Capabilities of the layer, possible values are Map, Query, Data, and/or Editing.
LayerDetails
  copyright : String
The copyright of the layer as specified in the Service Directory.
LayerDetails
  definitionExpression : String
The definition expression of the layer as specified in the Service Directory.
LayerDetails
  description : String
The description of the layer as specified in the Service Directory.
LayerDetails
  displayField : String
The displayField of the layer as specified in the Service Directory.
LayerDetails
  drawingInfo : DrawingInfo
The drawing information (renderer and alpha) of the layer as specified in the Service Directory.
LayerDetails
  extent : Extent
The extent of the layer as specified in the Service Directory.
LayerDetails
  fields : Array
The fields of the layer as specified in the Service Directory.
LayerDetails
  geometryType : String
The geometry type of the layer as specified in the Service Directory.
LayerDetails
  hasAttachments : Boolean
Indicates whether the layer has attachments or not [added in version 2.0].
LayerDetails
  htmlPopupType : String
The type of HTML popup authored (or not authored) by the user using ArcGIS Desktop [added in version 2.0].
LayerDetails
  id : Number
Layer ID assigned by ArcGIS Server for a layer.
LayerDetails
  maxScale : Number
The maximum scale of the layer as specified in the Service Directory [added in version 1.3].
LayerDetails
  minScale : Number
The minimum scale of the layer as specified in the Service Directory [added in version 1.3].
LayerDetails
  name : String
Layer name as defined in the map service.
LayerDetails
  objectIdField : String
The name of the object ID field.
LayerDetails
  parentLayer : LayerInfo
LayerInfo will only have name and id values.
LayerDetails
  relationships : Array
List of related tables [added in version 2.0].
LayerDetails
  spatialReference : SpatialReference
The spatial reference of the layer.
LayerDetails
  subLayers : Array
LayerInfo will only have name and id values.
LayerDetails
  timeInfo : TimeInfo
Time properties of the layer [added in version 2.0].
LayerDetails
  type : String
The type of the layer as specified in the Service Directory.
LayerDetails
  typeIdField : String
The field that represents the Type ID field.
LayerDetails
  types : Array
Subtypes are a subset of features in a feature class, or objects in a table, that share the same attributes.
LayerDetails
  version : Number
The version of ArcGIS Server where the layer is published to, for example, 9.3, 9.31, 10 or 10.01.
LayerDetails
Public Constants
 ConstantDefined By
  POPUP_HTML_TEXT : String = esriServerHTMLPopupTypeAsHTMLText
[static] The HTML Popup in ArcGIS Desktop was defined using "As a table of the visible fields".
LayerDetails
  POPUP_NONE : String = esriServerHTMLPopupTypeNone
[static] No HTML popup was defined in ArcGIS Desktop.
LayerDetails
  POPUP_URL : String = esriServerHTMLPopupTypeAsURL
[static] The HTML Popup in ArcGIS Desktop was defined using "As a URL".
LayerDetails
Property Detail
capabilitiesproperty
capabilities:Array

Capabilities of the layer, possible values are Map, Query, Data, and/or Editing.

This property can be used as the source for data binding.


Implementation
    public function get capabilities():Array
    public function set capabilities(value:Array):void
copyrightproperty 
copyright:String

The copyright of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get copyright():String
    public function set copyright(value:String):void
definitionExpressionproperty 
definitionExpression:String

The definition expression of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get definitionExpression():String
    public function set definitionExpression(value:String):void
descriptionproperty 
description:String

The description of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get description():String
    public function set description(value:String):void
displayFieldproperty 
displayField:String

The displayField of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get displayField():String
    public function set displayField(value:String):void
drawingInfoproperty 
drawingInfo:DrawingInfo

The drawing information (renderer and alpha) of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get drawingInfo():DrawingInfo
    public function set drawingInfo(value:DrawingInfo):void
extentproperty 
extent:Extent

The extent of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get extent():Extent
    public function set extent(value:Extent):void
fieldsproperty 
fields:Array

The fields of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get fields():Array
    public function set fields(value:Array):void

See also

geometryTypeproperty 
geometryType:String

The geometry type of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get geometryType():String
    public function set geometryType(value:String):void

See also

hasAttachmentsproperty 
hasAttachments:Boolean

Indicates whether the layer has attachments or not [added in version 2.0].

This property can be used as the source for data binding.


Implementation
    public function get hasAttachments():Boolean
    public function set hasAttachments(value:Boolean):void
htmlPopupTypeproperty 
htmlPopupType:String

The type of HTML popup authored (or not authored) by the user using ArcGIS Desktop [added in version 2.0]. See the POPUP_* constants for more details.

This property can be used as the source for data binding.


Implementation
    public function get htmlPopupType():String
    public function set htmlPopupType(value:String):void
idproperty 
id:Number

Layer ID assigned by ArcGIS Server for a layer. The topmost layer is 0, and each layer follows sequentially. If a layer is added or removed from the source map document, the ID values will shift accordingly.

This property can be used as the source for data binding.


Implementation
    public function get id():Number
    public function set id(value:Number):void
maxScaleproperty 
maxScale:Number

The maximum scale of the layer as specified in the Service Directory [added in version 1.3].

This property can be used as the source for data binding.


Implementation
    public function get maxScale():Number
    public function set maxScale(value:Number):void
minScaleproperty 
minScale:Number

The minimum scale of the layer as specified in the Service Directory [added in version 1.3].

This property can be used as the source for data binding.


Implementation
    public function get minScale():Number
    public function set minScale(value:Number):void
nameproperty 
name:String

Layer name as defined in the map service.

This property can be used as the source for data binding.


Implementation
    public function get name():String
    public function set name(value:String):void
objectIdFieldproperty 
objectIdField:String

The name of the object ID field.


Implementation
    public function get objectIdField():String
    public function set objectIdField(value:String):void
parentLayerproperty 
parentLayer:LayerInfo

LayerInfo will only have name and id values.

This property can be used as the source for data binding.


Implementation
    public function get parentLayer():LayerInfo
    public function set parentLayer(value:LayerInfo):void
relationshipsproperty 
relationships:Array

List of related tables [added in version 2.0].

This property can be used as the source for data binding.


Implementation
    public function get relationships():Array
    public function set relationships(value:Array):void

See also

spatialReferenceproperty 
spatialReference:SpatialReference

The spatial reference of the layer.


Implementation
    public function get spatialReference():SpatialReference
    public function set spatialReference(value:SpatialReference):void
subLayersproperty 
subLayers:Array

LayerInfo will only have name and id values.

This property can be used as the source for data binding.


Implementation
    public function get subLayers():Array
    public function set subLayers(value:Array):void

See also

timeInfoproperty 
timeInfo:TimeInfo

Time properties of the layer [added in version 2.0].

This property can be used as the source for data binding.


Implementation
    public function get timeInfo():TimeInfo
    public function set timeInfo(value:TimeInfo):void
typeproperty 
type:String

The type of the layer as specified in the Service Directory.

This property can be used as the source for data binding.


Implementation
    public function get type():String
    public function set type(value:String):void
typeIdFieldproperty 
typeIdField:String

The field that represents the Type ID field.

This property can be used as the source for data binding.


Implementation
    public function get typeIdField():String
    public function set typeIdField(value:String):void
typesproperty 
types:Array

Subtypes are a subset of features in a feature class, or objects in a table, that share the same attributes. They are used as a method to categorize your data.

This property can be used as the source for data binding.


Implementation
    public function get types():Array
    public function set types(value:Array):void

See also

versionproperty 
version:Number

Since : ArcGIS API for Flex 2.2

The version of ArcGIS Server where the layer is published to, for example, 9.3, 9.31, 10 or 10.01.

This property can be used as the source for data binding.


Implementation
    public function get version():Number
    public function set version(value:Number):void
Constant Detail
POPUP_HTML_TEXTConstant
public static const POPUP_HTML_TEXT:String = esriServerHTMLPopupTypeAsHTMLText

The HTML Popup in ArcGIS Desktop was defined using "As a table of the visible fields".

POPUP_NONEConstant 
public static const POPUP_NONE:String = esriServerHTMLPopupTypeNone

No HTML popup was defined in ArcGIS Desktop.

POPUP_URLConstant 
public static const POPUP_URL:String = esriServerHTMLPopupTypeAsURL

The HTML Popup in ArcGIS Desktop was defined using "As a URL".