I am faily new to GeoExt and openlayers. What I am trying to do is add multiple
filters to a layercontainer so that I can add multiple layers to each group.
Not sure if this is the best way to do this but what I want to do is add all my
Street Labels to a group called "Labels" I can add one no problem called
Overview Streets with the following code, but I need to add additional layers
like one called Quadrant Streets. When I try to modify the filter code to add
additional names it doesn't work and I get javascript errors. Any help
appreciated!
//Define Layer List Control - Tree Control for Legend Control
var layerList_Labels = new GeoExt.tree.LayerContainer({
text: 'Labels',
layerStore: mapPanel.layers,
leaf: false,
expanded: false,
loader: {
filter: function(record) {
return record.get("layer").name.indexOf("Overview Streets") !== -1
(need to add Quadrant Streets here also)
}
}
});
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users