I don't know if this will work, but try to define a 'group' literal in
the options when defining the WMS layer and then filter on that when
defining the container:

var wmslayer = new OpenLayers.Layer.WMS(
                "layername", "/geoserver/gwc/service/wms",
                { layers: 'what:ever', transparent: true, format: "image/gif" },
                { isBaseLayer: false, visibility: true, group: "groupName" }    
);      

and in the loader for the container:

loader: {
        filter: function (record) {  // this filters on the literal 'group:'
on each layer
                return record.get("layer").options.group === "groupName";
        }
}

Good Luck
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to