I am using vector layer with WFS protocol
var adressVector = new OpenLayers.Layer.Vector("Adress", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8080/geoserver/wfs", featurePrefix:"compa", featureType: "adress_location", featureNS: "http://localhost:8080/location", srsName: "EPSG:4326", geometryName: "the_geom", version: "1.0.0" }) }); I want to get addresses with some filter and adding filters property fo vector layer:
var adressVector = new OpenLayers.Layer.Vector("Adress", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8080/geoserver/wfs", featurePrefix:"compa", featureType: "adress_location", featureNS: "http://localhost:8080/location", srsName: "EPSG:4326", geometryName: "the_geom", version: "1.0.0", "filter": new OpenLayers.Filter.Logical({ type: OpenLayers.Filter.Logical.OR, filters: [ new OpenLayers.Filter.Comparison({ "type": OpenLayers.Filter.Comparison.EQUAL_TO, "property": 'name', "value": "B
أكثر...
var adressVector = new OpenLayers.Layer.Vector("Adress", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8080/geoserver/wfs", featurePrefix:"compa", featureType: "adress_location", featureNS: "http://localhost:8080/location", srsName: "EPSG:4326", geometryName: "the_geom", version: "1.0.0" }) }); I want to get addresses with some filter and adding filters property fo vector layer:
var adressVector = new OpenLayers.Layer.Vector("Adress", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8080/geoserver/wfs", featurePrefix:"compa", featureType: "adress_location", featureNS: "http://localhost:8080/location", srsName: "EPSG:4326", geometryName: "the_geom", version: "1.0.0", "filter": new OpenLayers.Filter.Logical({ type: OpenLayers.Filter.Logical.OR, filters: [ new OpenLayers.Filter.Comparison({ "type": OpenLayers.Filter.Comparison.EQUAL_TO, "property": 'name', "value": "B
أكثر...