# Class: DownloadLayerOption

## DownloadLayerOption()

#### new DownloadLayerOption()

图层下载选项

Source:
  - DownloadLayerOption.js, line 9

### Methods

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

构造一个新的 DownloadLayerOption 对象。

Source:
  - DownloadLayerOption.js, line 19

##### Returns:

Type
  Promise.<DownloadLayerOption>

#### (async, static) createObjByParmeters() → {Promise.<DownloadLayerOption>}

构造一个新的 DownloadLayerOption 对象。

Source:
  - DownloadLayerOption.js, line 34

##### Returns:

Type
  Promise.<DownloadLayerOption>

#### (async, static) getLayerId() → {Promise.<int>}

获取下载图层ID

Source:
  - DownloadLayerOption.js, line 87

##### Returns:

图层ID

Type
  Promise.<int>

#### (async, static) getName() → {Promise.<String>}

获取下载图层名称

Source:
  - DownloadLayerOption.js, line 114

##### Returns:

图层名称

Type
  Promise.<String>

#### (async, static) getType() → {Promise.<int>}

获取下载图层类型

Source:
  - DownloadLayerOption.js, line 141

##### Returns:

图层类型

Type
  Promise.<int>

#### (async, static) getWhereClause() → {Promise.<String>}

获取图层下载选项的过滤条件

Source:
  - DownloadLayerOption.js, line 60

##### Returns:

过滤条件

Type
  Promise.<String>

#### (async, static) setLayerId(layerId) → {Promise.<void>}

设置下载图层ID

##### Parameters:

Name | Type | Description
--- | --- | ---
`layerId` | int | 图层ID

Source:
  - DownloadLayerOption.js, line 101

##### Returns:

Type
  Promise.<void>

#### (async, static) setName(strLayerName) → {Promise.<void>}

设置下载图层名称

##### Parameters:

Name | Type | Description
--- | --- | ---
`strLayerName` | String | 图层名称

Source:
  - DownloadLayerOption.js, line 128

##### Returns:

Type
  Promise.<void>

#### (async, static) setType(iLayerType) → {Promise.<void>}

设置下载图层类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`iLayerType` | int | 图层类型

Source:
  - DownloadLayerOption.js, line 155

##### Returns:

Type
  Promise.<void>

#### (async, static) setWhereClause(whereClause) → {Promise.<void>}

设置图层下载选项的过滤条件

##### Parameters:

Name | Type | Description
--- | --- | ---
`whereClause` | String | 过滤条件

Source:
  - DownloadLayerOption.js, line 74

##### Returns:

Type
  Promise.<void>