Constructor Summary
Public Constructor | ||
public |
构造函数 |
Method Summary
Public Methods | ||
public |
activeNode(key: String): FancytreeNode 设置图层树关联的MapView |
|
public |
addToMapView(mapview: Object): Null 设置图层树关联的MapView |
|
public |
appendLayer(source: *, layer: *) |
|
public |
async bindKQMapboxGL() |
|
public |
clearSelectedLayers(): Null 清除所有选中图层的选中状态 |
|
public |
|
|
public |
返回活动图层的键值(键值的形式: sourceName@@layerId) |
|
public |
getKQMapboxGL(): * |
|
public |
返回可以同时选中的最大图层数 |
|
public |
通过节点的key得到原始数据名称 |
|
public |
getSource(): * |
|
public |
isVectorTileLayer(node: *): boolean |
|
public |
layerCount(): * |
|
public |
moveLayerToTop(key: *) |
|
public |
selectedLayers(layers: Array): Null 设置图层为选中状态 |
|
public |
setContextmenuCustomFunction(customFuns: Object): String 定制右键菜单函数 |
|
public |
setHorizontalScroll(): Null 设置图层树可以横向滚动 |
|
public |
setKQMapboxGL(kqmapboxgl: *) |
|
public |
setLayerOpacity(key: *, title: *) |
|
public |
setMaxLayerSelectedNumber(number: Number): Null 设置可以同时选中的最大图层数(默认值:20) |
|
public |
setOpacity(key: Object, opacity: Number): Null 设置图层的透明度(注意:需要在config.xml配置文件中,将layer标签的is_history属性设置为1) |
|
public |
unselectedLayers(uncheckedLayers: Array): Null 设置图层为非选中状态 |
Public Constructors
Public Methods
public activeNode(key: String): FancytreeNode source
设置图层树关联的MapView
Params:
Name | Type | Attribute | Description |
key | String | node的key值 |
Return:
FancytreeNode |
public addToMapView(mapview: Object): Null source
设置图层树关联的MapView
Params:
Name | Type | Attribute | Description |
mapview | Object | MapView对象 |
Return:
Null |
public appendLayer(source: *, layer: *) source
Params:
Name | Type | Attribute | Description |
source | * | ||
layer | * |
public async bindKQMapboxGL() source
public clearTopLayer() source
public getOriginSourceNameFromKey(key: String): String source
通过节点的key得到原始数据名称
Params:
Name | Type | Attribute | Description |
key | String | 格式为:sourceName@@layerId |
public moveLayerToTop(key: *) source
Params:
Name | Type | Attribute | Description |
key | * |
public selectedLayers(layers: Array): Null source
设置图层为选中状态
Params:
Name | Type | Attribute | Description |
layers | Array | 需要设置为选中状态的图层(图层格式:{sourceName, layerId}) |
Return:
Null |
public setContextmenuCustomFunction(customFuns: Object): String source
定制右键菜单函数
Params:
Name | Type | Attribute | Description |
customFuns | Object | 设置需要定制的右键菜单函数: 格式{key: fun, key: fun} key的种类:"stick","clearStick", "legend", "opacity", "zoomToLayer", "clearAllSelected" |
public setKQMapboxGL(kqmapboxgl: *) source
Params:
Name | Type | Attribute | Description |
kqmapboxgl | * |
public setLayerOpacity(key: *, title: *) source
Params:
Name | Type | Attribute | Description |
key | * | ||
title | * |
public setMaxLayerSelectedNumber(number: Number): Null source
设置可以同时选中的最大图层数(默认值:20)
Params:
Name | Type | Attribute | Description |
number | Number | 可以同时选中的最大图层数 |
Return:
Null |