[OpenLayers-Users] Filter on WMS Polygon Layer

Ralph Dell RDell at CatawbaCountyNC.gov
Fri Apr 5 07:14:19 PDT 2013


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-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of adityakumar529
Sent: Friday, April 05, 2013 9:39 AM
To: openlayers-users at 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
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list