new LayerManager(mapViewer)
图层管理对象
Parameters:
| Name | Type | Description |
|---|---|---|
mapViewer |
wol.MapViewer | wol地图实例 |
- Source:
Methods
-
getLayers()
-
获取图层组
- Source:
-
getMap() → {ol.Map}
-
获取地图实例
- Source:
Returns:
- Type
- ol.Map
-
getTreeData() → {Array}
-
获取图层树
- Source:
Returns:
- Type
- Array
-
init(option)
-
初始化图层管理对象
Parameters:
Name Type Description optionobject | undefined 过滤图层,传入待过滤图层的名称或图层名称数组,可选
Properties
Name Type Description excludestring | Array.<string> 过滤图层,传入待过滤图层的名称或图层名称数组
targetstring 图层树目标容器DOM元素id
- Source:
WolMap