# Class: LayerEnum

## LayerEnum()

#### new LayerEnum()

android图层枚举功能组件

Source:
  - LayerEnum.js, line 12

### Methods

#### (async, static) createObj() → {Promise.<LayerEnum>}

构造一个新的LayerEnum对象

Source:
  - LayerEnum.js, line 22

##### Returns:

Type
  Promise.<LayerEnum>

#### (async, static) init(layers) → {boolean}

初始化图层列表

##### Parameters:

Name | Type | Description
--- | --- | ---
`layers` | Array | 图层列表

Source:
  - LayerEnum.js, line 39

##### Returns:

Type
  boolean

#### (async, static) moveToFirst() → {boolean}

移动至第一个

Source:
  - LayerEnum.js, line 53

##### Returns:

Type
  boolean

#### (async, static) moveToLast() → {boolean}

移动至最后

Source:
  - LayerEnum.js, line 67

##### Returns:

Type
  boolean

#### (async, static) next() → {Promise.<MapLayer>}

获取下一个MapLayer

Source:
  - LayerEnum.js, line 81

##### Returns:

Type
  Promise.<MapLayer>

#### (async, static) prev() → {Promise.<MapLayer>}

获取前一个MapLayer

Source:
  - LayerEnum.js, line 100

##### Returns:

Type
  Promise.<MapLayer>