Constructor Summary
Public Constructor | ||
public |
Constructor |
Method Summary
Public Methods | ||
public |
addToMapView(mapview: Object): Null Set the MapView of the layer tree object |
|
public |
clearSelectedLayers(): Null Sets the status of all selected layers as unchecked |
|
public |
Returns the key value of the active layer(key format: sourceName@@layerId) |
|
public |
Returns the maximum number of layers can selected |
|
public |
selectedLayers(layers: Array): Null Sets the status of the layers as selected |
|
public |
setMaxLayerSelectedNumber(number: Number): Null Limit the maximum number of layers selected(default:20). |
|
public |
setOpacity(key: Object, opacity: Number): Null Sets the opacity of the layer (notice: in config.xml,Set the is_history attribute of the layer tag to 1) |
Public Constructors
Public Methods
public addToMapView(mapview: Object): Null source
Set the MapView of the layer tree object
Params:
Name | Type | Attribute | Description |
mapview | Object | MapView object |
Return:
Null |
public clearSelectedLayers(): Null source
Sets the status of all selected layers as unchecked
Return:
Null |
public getActiveLayerKey(): String source
Returns the key value of the active layer(key format: sourceName@@layerId)
public selectedLayers(layers: Array): Null source
Sets the status of the layers as selected
Params:
Name | Type | Attribute | Description |
layers | Array | The layer that you want to set to the selected state(layer format:{sourceName, layerId}) |
Return:
Null |