[Users] LayerContainer in TreePanel
Julien-Samuel Lacroix
jlacroix at mapgears.com
Mon Mar 1 22:49:54 CET 2010
Hi,
I was looking at the Layer Tree Tutorial [1] and wondered if it's
possible to add multiple LayerContainer to a single TreePanel.
For example, how do I build a Tree with the two following LayerContainer:
var layerListTasmania = new GeoExt.tree.LayerContainer({
text: 'Tasmania Layers',
layerStore: mapPanel.layers,
leaf: false,
expanded: true,
loader: {
filter: function(record) {
return record.get("layer").name.indexOf("Tasmania") !== -1
}
}
});
var layerListUS = new GeoExt.tree.LayerContainer({
text: 'Tasmania Layers',
layerStore: mapPanel.layers,
leaf: false,
expanded: true,
loader: {
filter: function(record) {
return record.get("layer").name.indexOf("US") !== -1
}
}
});
[1] http://www.geoext.org/tutorials/layertree-tutorial.html
Best regards,
Julien
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Users
mailing list