source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/widgets/tree/LayerContainer.txt
@
81
Revision 76, 1.7 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | |
2 | .. currentmodule:: GeoExt.tree |
3 | |
4 | :class:`GeoExt.tree.LayerContainer` |
5 | ================================================================================ |
6 | |
7 | |
8 | .. cssclass:: meta |
9 | |
10 | |
11 | Extends |
12 | * `Ext.tree.AsyncTreeNode <http://dev.sencha.com/deploy/dev/docs/?class=Ext.tree.AsyncTreeNode>`_ |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | .. class:: LayerContainer |
21 | |
22 | A subclass of ``Ext.tree.AsyncTreeNode`` that will collect all layers of an |
23 | OpenLayers map. Only layers that have displayInLayerSwitcher set to true |
24 | will be included. The childrens' iconCls defaults to |
25 | "gx-tree-layer-icon". |
26 | |
27 | Note: if this container is loaded by an ``Ext.tree.TreeLoader``, the |
28 | ``applyLoader`` config option of that loader needs to be set to |
29 | "false". Also note that the list of available uiProviders will be |
30 | taken from the ownerTree if this container's loader is configured |
31 | without one. |
32 | |
33 | To use this node type in ``TreePanel`` config, set nodeType to |
34 | "gx_layercontainer". |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | Config Options |
41 | -------------- |
42 | |
43 | Configuration properties in addition to |
44 | those listed for `Ext.tree.AsyncTreeNode <http://dev.sencha.com/deploy/dev/docs/?class=Ext.tree.AsyncTreeNode>`_. |
45 | |
46 | |
47 | .. describe:: layerStore |
48 | |
49 | :class:`GeoExt.data.LayerStore` The layer store containing layers to be |
50 | displayed in the container. If loader is not provided or provided as |
51 | ``Object``, this property will be set as the store option of the |
52 | loader. Otherwise it will be ignored. |
53 | |
54 | .. describe:: loader |
55 | |
56 | :class:`GeoExt.tree.LayerLoader` or ``Object`` The loader to use with |
57 | this container. If an ``Object`` is provided, a |
58 | :class:`GeoExt.tree.LayerLoader`, configured with the the properties |
59 | from the provided object, will be created. |
60 | |
61 | |
62 | |
63 | |
64 | |
65 | |
66 | |
67 | |
68 |
Note: See TracBrowser
for help on using the repository browser.