cgxp.tree.LayerTree

xtype
cgxp_layertree

Config Options

Configuration properties.

defaultThemes

Array of strings The themes to load on start up

frienlyUrl

Boolean True to enable friendly URL support (HTML5 browsers only), default to true.

mapPanel

GeoExt.MapPanel

stateId

String Prefix of parameters in the permalinks

themes

Object The initialConfig of themes

uniqueTheme

Boolean True to have only one theme on the layer tree, default to false.

updateLegendDelay

Number The number of milliseconds the update of legends is deferred by. Defaults to 2000.

wmsOptions

Object Optional global configuration for WMS layers

wmsURL

String The URL of the WMS service

wmtsOptions

Object Optional global configuration for WMTS layers

Public Methods

Public methods.

LayerTree.applyState()
Parameters:stateObject
LayerTree.checkInRange()

Checks if a layer is in range (correct scale) and modifies node. rendering consequently :arg node: Ext.tree.TreeNode

LayerTree.findGroupByLayerName()

Finds the group config for a specific layer using its name.

Parameters:nameString
LayerTree.findGroupByName()

Finds the group config using its name.

Parameters:nameString
LayerTree.findThemeByName()

Finds the theme config using its name.

Parameters:nameString
LayerTree.getState()
Returns:Object
LayerTree.loadDefaultThemes()

Load the default Theme.

LayerTree.loadGroup()

Loads a layer group from the config.

Parameters:
  • groupObject the group config
  • layersArray the sub layers displayed at once. optional.
  • opacityFloat the OL layer opacity. optional.
  • visibilityBoolean the OL layer visibility. optional.
  • scrollBoolean scroll on the element. optional, default to true.
Returns:

Ext.tree.TreeNode

LayerTree.removeGroup()

Removes a layer group. :arg node: Ext.tree.TreeNode

Table Of Contents

Previous topic

cgxp.WMSLegend

This Page