Methods
(async, static) getCurLayerName() → {String}
获取当前图层名称
- Source:
Returns:
当前图层名称
- Type
- String
(async, static) getCurStyleName() → {String}
获取当前风格名称
- Source:
Returns:
当前风格名称
- Type
- String
(async, static) getCurTileMatrixSetName() → {String}
获取当前瓦片集名称
- Source:
Returns:
当前瓦片集名称
- Type
- String
(async, static) getLayerMatrixSetNames(layerIndex) → {Array}
获取某一图层下所有瓦片集的名称
Parameters:
| Name | Type | Description |
|---|---|---|
layerIndex |
Number | int类型的图层索引 |
- Source:
Returns:
瓦片集名称列表
- Type
- Array
(async, static) getLayerNames() → {Array}
获取所有图层的名称
- Source:
Returns:
图层名称列表
- Type
- Array
(async, static) setCurLayerInfo(layerName, matrixSetName, styleName) → {Promise.<Void>}
设置当前图层信息
Parameters:
| Name | Type | Description |
|---|---|---|
layerName |
String | 图层名称 |
matrixSetName |
String | 瓦片集名称,该瓦片集必须在layerName图层下 |
styleName |
String | 扩展接口,暂时无需设置 |
- Source:
Returns:
- Type
- Promise.<Void>