[OpenLayers-Users] Change filter on vector layer
Lak Krishnan
lakshmanan.krishnan at mecklenburgcountync.gov
Mon Jul 6 10:38:30 EDT 2009
I have a vector layer with a WFS protocol and filter as below
var impactlocptlayer = new OpenLayers.Layer.Vector("Editable Features", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection("EPSG:2264"),
filter: new OpenLayers.Filter.Comparison({type:
OpenLayers.Filter.Comparison.EQUAL_TO,property: 'eventid',value: 4}),
extractAttributes: false,
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:2264",
url: "http://localhost/geoserver/wfs",
featureNS : "http://postgis.org",
featureType: "impactlocpt",
geometryName: "the_geom",
schema:
"http://localhost/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=uasidata:impactlocpt"
}),
styleMap: wfsstyle
});
How do I change "Filter" later in my code?
Lak Krishnan
--
View this message in context: http://n2.nabble.com/Change-filter-on-vector-layer-tp3213371p3213371.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list