MapLayerTree
Extends:
Map layer tree class. display and loading layers.
Constructor Summary
Public Constructor | ||
public |
constructor(config: Object, options: Object, id: Object) Creates a map layer tree control |
Inherited Summary
From class LayerTree | ||
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 constructor(config: Object, options: Object, id: Object) source
Creates a map layer tree control