Hello all, Thanks Jason. I haven't tried that yet but i suppose it should work... It makes sense!
Cheers, Hugo On Tue, Jun 7, 2011 at 4:10 PM, Jason Hochschild <[email protected]>wrote: > 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 > -- Hugo Martins LabNT - ISEGI UNL Campus de Campolide 1070-312 Lisboa N 38°43'56.84", W 9°9'35.74"
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
