Openlayers enables to declare multiple layers in one WMS layer class.
var nasa_wms = new OpenLayers.Layer.WMS(
"NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{
layers: "modis, global_mosaic"
});
When I add this layer to map, the items are coming together on the map. But sometimes I want to use a single layer to apply CQRS filter to "modis" layer or "global_mosaic". So I should use a single wms layer and add CQRS filter.
Is this possible, or should I separate layers as two layers.