[Users] How to add more than one container into a treepanel

Andreas Hocevar ahocevar at opengeo.org
Fri Mar 5 10:38:11 CET 2010


See the tree.js example and the applyLoader property. This is missing in
your code.

Regards,
Andreas.

On 2010-03-05 08:55, Ozgur Zan wrote:
> Dear list member,
>
> I have two GeoExt.tree container. One is BaseLayerContainer and the
> other one is OverlayLayerContainer.
> I aim to merge them in a single Ext.tree.TreePanel so that they are
> both seen but seperately. The following procedure does not work:
> (They are trying to load the layers but they are not loaded)
>
> /    var layerTree = new Ext.tree.TreePanel({
>         id: "treepanel",
>         title: "Layers",
>         root: new Ext.tree.AsyncTreeNode({
>             expanded: true,
>             children: [layerTreeBase, layerTreeFeaturesInternal]
>         }),
>         rootVisible: false,
>         split: true,
>         collapsible: true,
>         collapseMode: "mini",
>         autoScroll: true,
>         lines: false,
>         enableDD: true
>     });/
>
> when I modify root as shown below the application works but only with
> baselayers.
> /root: layerTreeBase
>
> /What should I do in order to display both baselayers and other layers
> in a tree format./
>
> /Best Regards,
> Ozgur
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list