Description
Contains information about each layer in a map service. LayerInfo has no constructor.
Class hierarchy
esri.layers.LayerInfo
Properties
| defaultVisibility |
Boolean
|
Default visibility of the layers in the map service. |
| 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. |
| name |
String
|
Layer name as defined in the map service. |
| 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. |
| subLayerIds |
Number[]
|
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. |
Properties Detail
<Boolean> defaultVisibility
Default visibility of the layers in the map service.
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.
Layer name as defined in the map service.
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.
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.