I want to select on map that "res_id = 182" but that is selecting all objects on the map.
var filter = new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.EQUAL_TO,
property: "res_id",
value: "182"
});
var filterStrategy = new OpenLayers.Strategy.Filter({filter: filter});
var control = new OpenLayers.Control.GetFeature({
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(mylayer),
strategies: [new OpenLayers.Strategy.Fixed(),filterStrategy],
box: true,
multipleKey: "shiftKey",
toggleKey: "ctrlKey"
});
I actually want to select an area on map and filter selected items by attribute from combobox.