Packagecom.esri.ags.layers
Classpublic class LayerInfo

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. For more details about a layer, use getLayerDetails() which returns LayerDetails.

See also

LayerDetails
ArcGISDynamicMapServiceLayer.getLayerDetails()
ArcGISTiledMapServiceLayer.getLayerDetails()


Public Properties
 PropertyDefined by
  defaultVisibility : Boolean
Default visibility of the layers in the map service.
LayerInfo
  id : Number
Layer ID assigned by ArcGIS Server for a layer.
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
public var defaultVisibility:Boolean

Default visibility of the layers in the map service.

idproperty 
public var 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.

nameproperty 
public var name:String

Layer name as defined in the map service.

parentLayerIdproperty 
public var 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.

subLayerIdsproperty 
public var 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.