Hi,
in the example http://geoext.github.com/geoext2/examples/tree/tree.html
you see, how with the plugin gx_layercontainer all map layers are
displayed in the layertree. When I change the layerstore with less layer
nothing happens. You see always all map-layers. The layerstore is not
considered. What is wrong respectively how is the code?
In the example:
var treeStore = Ext.create('Ext.data.TreeStore', {
model: 'GeoExt.data.LayerTreeModel',
root: {
plugins: [{
ptype: 'gx_layercontainer',
store: mapPanel.layers
}],
expanded: true
}
});
now:
var lstore = new GeoExt.data.LayerStore({
map: map,
layers: [wms,global]
});
var treeStore = Ext.create('Ext.data.TreeStore', {
model: 'GeoExt.data.LayerTreeModel',
root: {
plugins: [{
ptype: 'gx_layercontainer',
store: lstore
}],
expanded: true
}
});
Thank you for the help,
Tobias
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users