OpenLayers Addon - Filter for WMS-Layer

Hi,

in “plain” openlayer you can set a CQL_FILTER for a WMS-layer. Is there a way to do this in vopenlayers? Here is an example for what i mean:


var filter='criterium_one=2 AND criterium_tow=11185 ';
var dm_wms = new OpenLayers.Layer.WMS(
                "myLayer",
                "http://www.example.net:8080/geoserver/wms?service=wms",
                {
                    layers: "myLayer",
                    transparent: "true",
                    CQL_FILTER: filter,
                    format: "image/png"
                },
                {
                    isBaseLayer: false,
                    visibility: true,
                    sphericalMercator: true
                }
            );

Regards

Daniel

Hi,

I didn’t check, but I thing there is currently no api for such a filtering mechanism. At least I have never seen nothing like thoses. Looks rather easy to implement though. Would you fill a ticket to the (google hosted) project page? Otherwise I’ll most likely forget this issue. A live server supporting the feature would be nice for testing.

cheers,
matti