I have a GeoJson overlay layer, which has styles implemented via Rule (Filter and Symbolizer) and its working. Now I want to implement filtering on the GeoJson layer based on user input. How does one implement this<br><br>
var state = new OpenLayers.Layer.Vector("State", {<br> projection: map.displayProjection,<br> strategies: [filterStrategy,<br> new OpenLayers.Strategy.Fixed()],<br> protocol: new OpenLayers.Protocol.HTTP({<br>
url: "klm/GIS.json", <br> format: new OpenLayers.Format.GeoJSON({<br> //extractStyles: true,<br> extractAttributes: true<br>
})<br> })<br> });<br> map.addLayer(state);<br><br>var filter = new OpenLayers.Filter.Comparison({<br> type: OpenLayers.Filter.Comparison.EQUAL_TO,<br> property: "",<br>
value: "" });<br><br>var filterStrategy = new OpenLayers.Strategy.Filter({});<br><br>How does one dynamically change the property and value given user input from a textbox? <br>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/how-to-implement-a-filter-in-a-geoJSON-layer-tp7120865p7120865.html">how to implement a filter in a geoJSON layer</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>