Extends
Members
    获取此集合中的图层数量。
readonly onItemAdded : Event
    将数图层添加到集合中时引发的事件。向事件处理程序传递添加的图层。
- Inherited From:
readonly onItemMoved : Event
    当数据源更改集合中的位置时引发的事件。事件处理程序被传递给数据源被移动的对象,在移动之后的新索引以及在移动之前的旧索引。
- Inherited From:
readonly onItemRemoved : Event
    从集合中删除数据源时引发的事件。向事件处理程序传递已删除的数据源。
- Inherited From:
    获取全部
Methods
    添加图层
    
| Name | Type | Description | 
|---|---|---|
| layer | LayerBase | 要添加的图层 | 
    检查集合是否包含给定的数据。
    
| Name | Type | Description | 
|---|---|---|
| item | LayerBase | 要检查的数据 | 
Returns:
    如果集合包含数据,则为true,否则为false。
    
    根据索引获取图层
    
| Name | Type | Description | 
|---|---|---|
| index | Number | 要检索的索引 | 
Returns:
    指定索引处的数据。
    
    根据id获取图层
    
| Name | Type | Description | 
|---|---|---|
| id | Number | 要检索的id | 
Returns:
    指定id处的图层。
    
    根据名称获取图层
    
| Name | Type | Description | 
|---|---|---|
| name | Number | 要检索的名称 | 
Returns:
    含有指定名称的图层。
    
    确定集合中给定图层的索引。
    
| Name | Type | Description | 
|---|---|---|
| item | Object | 要检索的图层 | 
Returns:
    集合中图层的索引;如果集合中不存在,为-1
    
    移除图层
    
| Name | Type | Description | 
|---|---|---|
| layer | LayerBase | 要删除的图层 | 
| destroy | Boolean | 可选的 除了删除图层外是否还要销毁 | 
Returns:
    删除成功 True,删除失败 False
    
