Dear Users, I have a WMS layer where i want to do filter in terms of some criteria. var Boundary3 = new OpenLayers.Layer.WMS("try", "http://localhost/ArcGIS/services/Ward/MapServer/WMSServer", {'layers': '0', transparent:true, format: 'image/png'}, {isBaseLayer: false},{'buffer':5}); Boundary3.setVisibility(1);
For doing so I am using the following code.But I am not getting error every time. var filter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: "Ward_Name", value: "Begur"}); var parser = new OpenLayers.Format.Filter.v1_1_0(); var filterAsXml = parser.write(filter); var xml = new OpenLayers.Format.XML(); var filterAsString = xml.write(filterAsXml); Boundary3.params["FILTER"] = filterAsString; Boundary3.redraw(); Requesting to please help on this. Aditya Kumar India Urban Space Foundation. ----- GIS Developer India Urban Space Foundation -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Filter-on-WMS-Polygon-Layer-tp5044815.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