Reference Source
public class | source

MapLayerTree

Extends:

L~L.EventedLayerTree → MapLayerTree

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

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

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

Override:

LayerTree#constructor

Params:

NameTypeAttributeDescription
config Object

map config instance(obtain by KQ.Map.MapConfig.getInstance method)

options Object

map layer tree options(reserved parameter)

id Object

Instantiates a map layer tree object given the DOM ID of a

element