# Class: MapServiceLayerInfo

## MapServiceLayerInfo()

#### new MapServiceLayerInfo()

地图服务图层信息

Source:
  - MapServiceLayerInfo.js, line 9

### Methods

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

构造一个新的 MapServiceLayerInfo 对象。

Source:
  - MapServiceLayerInfo.js, line 19

##### Returns:

Type
  Promise.<MapServiceLayerInfo>

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

获取地图服务图层ID

Source:
  - MapServiceLayerInfo.js, line 41

##### Returns:

地图服务图层ID

Type
  Promise.<int>

#### (async, static) getMaxScale() → {Promise.<double>}

获取地图服务图层最大缩放比

Source:
  - MapServiceLayerInfo.js, line 95

##### Returns:

地图服务图层最大缩放比

Type
  Promise.<double>

#### (async, static) getMinScale() → {Promise.<double>}

获取地图服务图层最小缩放比

Source:
  - MapServiceLayerInfo.js, line 122

##### Returns:

地图服务图层最小缩放比

Type
  Promise.<double>

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

获取地图服务图层名称

Source:
  - MapServiceLayerInfo.js, line 68

##### Returns:

地图服务图层名称

Type
  Promise.<String>

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

获取地图服务图层样式

Source:
  - MapServiceLayerInfo.js, line 149

##### Returns:

地图服务图层样式

Type
  Promise.<String>

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

设置地图服务图层ID

##### Parameters:

Name | Type | Description
--- | --- | ---
`layerId` | int | 地图服务图层ID

Source:
  - MapServiceLayerInfo.js, line 55

##### Returns:

Type
  Promise.<void>

#### (async, static) setMaxScale(maxScale) → {Promise.<void>}

设置地图服务图层最大缩放比

##### Parameters:

Name | Type | Description
--- | --- | ---
`maxScale` | double | 地图服务图层最大缩放比

Source:
  - MapServiceLayerInfo.js, line 109

##### Returns:

Type
  Promise.<void>

#### (async, static) setMinScale(minScale) → {Promise.<void>}

设置地图服务图层最小缩放比

##### Parameters:

Name | Type | Description
--- | --- | ---
`minScale` | double | 地图服务图层最小缩放比

Source:
  - MapServiceLayerInfo.js, line 136

##### Returns:

Type
  Promise.<void>

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

获取地图服务图层名称

##### Parameters:

Name | Type | Description
--- | --- | ---
`StrName` | String | 地图服务图层名称

Source:
  - MapServiceLayerInfo.js, line 82

##### Returns:

Type
  Promise.<void>

#### (async, static) setStyle(strStyle) → {Promise.<void>}

设置地图服务图层样式

##### Parameters:

Name | Type | Description
--- | --- | ---
`strStyle` | String | 地图服务图层样式

Source:
  - MapServiceLayerInfo.js, line 163

##### Returns:

Type
  Promise.<void>