filtering either after projection or in the protocol-&gt;format-&gt;filter does not seem to be working at all. Example<br><br>var state = new OpenLayers.Layer.Vector(&quot;State&quot;, {<br>                projection: map.displayProjection, <br>
                filter: new OpenLayers.Filter.Comparison({<br>                type: OpenLayers.Filter.Comparison.EQUAL_TO,<br>                property: &#39;SCHMGT&#39;,<br>                value: 2<br>            }),                              <br>
        strategies: [new OpenLayers.Strategy.Fixed()],<br>                protocol: new OpenLayers.Protocol.HTTP({<br>                    url: &quot;klm/GIS.json&quot;,                                     <br>                    format: new OpenLayers.Format.GeoJSON({<br>
                        //extractStyles: true,                               <br>                        extractAttributes: true                      <br>           <br>                    })<br>                })<br>            });<br>
<br>How does one implement a filter??<br><br><div class="gmail_quote">On Fri, Dec 23, 2011 at 11:51 AM, Aparna <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=7127323&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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(&quot;State&quot;, {<br>                projection: map.displayProjection,<br>        strategies: [filterStrategy,<br>        new OpenLayers.Strategy.Fixed()],<br>                protocol: new OpenLayers.Protocol.HTTP({<br>

                    url: &quot;klm/GIS.json&quot;,                                     <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: &quot;&quot;,<br>

    value: &quot;&quot;  });<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>
</blockquote></div><br>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Re-how-to-implement-a-filter-in-a-geoJSON-layer-tp7127323p7127323.html">Re: 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/>