<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
I've the necessity to grep features from my VectorLayer on basis of a
attribute. A<span id="result_box" class="short_text"><span
 style="background-color: rgb(255, 255, 255);"
 title="so, wie es jetzt ist, muss ich">s it is now, </span></span><span
 id="result_box" class="short_text"><span
 style="background-color: rgb(255, 255, 255);"
 title="so, wie es jetzt ist, muss ich alle features
 durchlaufen">I
have to go through all the features and check </span></span><span
 id="result_box" class="short_text"><span
 style="background-color: rgb(255, 255, 255);"
 title="so, wie es jetzt ist, muss ich alle features
 durchlaufen und deren Attribut kontrollieren">their
attribute:</span></span><br>
<br>
var features = []<br>
for(key in vectorLayer.features) {<br>
    if (vectorLayer.features[key].attributes.type == 'something')<br>
        features.push(layerRouting.features[key]);<br>
}<br>
<br>
Could it be interessting to have such Feature (getFeaturesByAttribute)
in a offical Release for OpenLayers?<br>
<br>
Best regards,<br>
Daniel<br>
<br>
<pre class="moz-signature" cols="72">-- 
  Daniel Degasperi
  Software Developer
  <a class="moz-txt-link-abbreviated" href="mailto:daniel.degasperi@r3-gis.com">daniel.degasperi@r3-gis.com</a>

---------------------------
  R3 GIS Srl
  Via Johann Kravogl 2
  I-39010 Merano - Sinigo (BZ)
  Tel. +39 0473 494949
  Fax. +39 0473 069902
  Web  <a class="moz-txt-link-freetext" href="http://www.r3-gis.com">http://www.r3-gis.com</a>
----------------------------- </pre>
</body>
</html>