Hi,<br><br>I have problems with filters. I try to create filter dynamically to select many feature on my layer.<br><br>Some test code :<br><br>var layer=map.getLayersBy('name','franch')[0];<br>var filter= new OpenLayers.Filter.Comparison({<br>
type: OpenLayers.Filter.Comparison.LIKE,<br> property: "Nom",<br> value: "test"<br> });<br>for(i=0;i<layer.features.length;i++){<br> var feature=layer.features[i];<br>
alert(feature.attributes.Nom);<br> if(filter.evaluate(feature)){<br> alert('ee');<br>}<br>}<br><br>I have features with an attribute "Nom" = "test" but the filter return alway false.<br>
<br>What I'm doing wrong?<br><br>Regards,<br><br>Jim<br clear="all"><br>-- <br>Aumard Jimmy<br>Développeur - <a href="http://www.kinaxia.fr">http://www.kinaxia.fr</a><br>