GeoExt

Table Of Contents

Previous topic

GeoExt.tree.LayerContainer

Next topic

GeoExt.tree.LayerNode

GeoExt.tree.LayerLoader

Extends
class GeoExt.tree.LayerLoader
A loader that will load all layers of a GeoExt.data.LayerStore By default, only layers that have displayInLayerSwitcher set to true will be included. The childrens’ iconCls defaults to “gx-tree-layer-icon”.

Config Options

Configuration properties in addition to those listed for Ext.util.Observable.

filter

Function A function, called in the scope of this loader, with a layer record as argument. Is expected to return true for layers to be loaded, false otherwise. By default, the filter checks for displayInLayerSwitcher:

filter: function(record) {
    return record.get("layer").displayInLayerSwitcher == true
}
store
GeoExt.data.LayerStore The layer store containing layers to be added by this loader.
uiProviders
Object An optional object containing properties which specify custom GeoExt.tree.LayerNodeUI implementations. If the optional uiProvider attribute for child nodes is a string rather than a reference to a TreeNodeUI implementation, then that string value is used as a property name in the uiProviders object. If not provided, the uiProviders object will be taken from the ownerTree.