I use a cql_filter on my wms layer

filterLayer = new OpenLayers.Layer.WMS(
        'filterlayer', geoserver, {
      layers: ['foo'],
        cql_filter: my_filter,
    );
 
and then as rammaraio suggested mergenewparams using "CQL_FILTER"

var filter_value = xyz;
var filter = "name ='" + filter_value + "'";
filterLayer.mergeNewParams({"CQL_FILTER": filter});

r. dell

-----Original Message-----
From: openlayers-users-boun...@lists.osgeo.org 
[mailto:openlayers-users-boun...@lists.osgeo.org] On Behalf Of adityakumar529
Sent: Friday, April 05, 2013 9:39 AM
To: openlayers-users@lists.osgeo.org
Subject: Re: [OpenLayers-Users] Filter on WMS Polygon Layer

 Sorry not working.



-----
GIS Developer
India Urban Space Foundation
--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Filter-on-WMS-Polygon-Layer-tp5044815p5044837.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to