Packagecom.esri.ags.layers.supportClasses
Classpublic class LayerInfo
InheritanceLayerInfo Inheritance flash.events.EventDispatcher
Subclasses DynamicLayerInfo

Contains basic information about one layer in a map service. This is the same layer information available in the MapService page of the service directory, see HTML and json examples. Use getDetails() to get more information about a specific layer or getAllDetails() for all layers and tables in the service, either method will return the more detailed LayerDetails.

See also

com.esri.ags.layers.ArcGISDynamicMapServiceLayer.layerInfos
com.esri.ags.layers.ArcGISTiledMapServiceLayer.layerInfos
com.esri.ags.layers.ArcGISDynamicMapServiceLayer.getDetails()
com.esri.ags.layers.ArcGISTiledMapServiceLayer.getDetails()
com.esri.ags.layers.ArcGISDynamicMapServiceLayer.getAllDetails()
com.esri.ags.layers.ArcGISTiledMapServiceLayer.getAllDetails()
LayerDetails


Public Properties
 PropertyDefined By
  defaultVisibility : Boolean
Default visibility of the layers in the map service.
LayerInfo
  layerId : Number
Layer ID assigned by ArcGIS Server for a layer.
LayerInfo
  maxScale : Number
The maximum scale of the layer as specified in the Service Directory [added in version 2.2].
LayerInfo
  minScale : Number
The minimum scale of the layer as specified in the Service Directory [added in version 2.2].
LayerInfo
  name : String
Layer name as defined in the map service.
LayerInfo
  parentLayerId : Number
If the layer is part of a group layer, it will include the parent ID of the group layer.
LayerInfo
  subLayerIds : Array
If the layer is a parent layer, it will have one or more sublayers included in an array.
LayerInfo
Property Detail
defaultVisibilityproperty
defaultVisibility:Boolean

Default visibility of the layers in the map service.

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


Implementation
    public function get defaultVisibility():Boolean
    public function set defaultVisibility(value:Boolean):void
layerIdproperty 
layerId: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 layerId():Number
    public function set layerId(value:Number):void
maxScaleproperty 
maxScale:Number

Since : ArcGIS API for Flex 2.2

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

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

Since : ArcGIS API for Flex 2.2

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

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
parentLayerIdproperty 
parentLayerId:Number

If the layer is part of a group layer, it will include the parent ID of the group layer. Otherwise, the value is -1. 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 parentLayerId():Number
    public function set parentLayerId(value:Number):void
subLayerIdsproperty 
subLayerIds:Array

If the layer is a parent layer, it will have one or more sublayers included in an array. Otherwise, the value is null. 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 subLayerIds():Array
    public function set subLayerIds(value:Array):void