GeoExt BaseLayerContainer and OverlayLayerContainer together

If you want to useĀ  GeoExt widgets BaseLayerContainer and OverlayLayerContainer in the same tree, like this:

geoext baselayer and overviewlayer containers

GeoExt BaseLayerContainer and OverlayLayerContainer

var layerRoot = new Ext.tree.TreeNode({
text: "All Layers",
expanded: true
});
layerRoot.appendChild(new GeoExt.tree.BaseLayerContainer({
text: "Base Layers",
map: map,
expanded: true
}));
layerRoot.appendChild(new GeoExt.tree.OverlayLayerContainer({
text: "Overlays",
map: map,
expanded: true
}));
var layerTree = new Ext.tree.TreePanel({
title: "Map Layers",
root: layerRoot,
enableDD: true,
collapsible: true,
height: 200,
expanded: true
});

GeoExt is now at 0.5RC1 and it is rather good!