Thanks for replying!<br><br>getFeatureById() and OpenLayers.Layer.Vector.selectedFeatures both return feature(s), I don't see how I can use these functions to select features?<br><br>Alex.<br><br><div class="gmail_quote">
On Thu, Jul 22, 2010 at 2:56 PM, emmexx <span dir="ltr"><<a href="mailto:emmexx@tiscalinet.it">emmexx@tiscalinet.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Il 22/07/2010 15:24, Alex Brandsen scrisse:<br>
</div><div><div></div><div class="h5">> Hi all,<br>
><br>
> I was wondering if there is a way to manually select a feature, i.e.<br>
> when a feature is clicked, I want to select a feature next to it as well.<br>
> I can't seem to find any documentation on this, unfortunately.<br>
<br>
</div></div><div><div></div><div class="h5">You can use:<br>
<br>
OpenLayers.Layer.Vector.getFeatureById()<br>
<br>
or the undocumented/private/I can't find it in the api docs<br>
<br>
OpenLayers.Layer.Vector.selectedFeatures array.<br>
<br>
bye<br>
maxx<br>
</div></div></blockquote></div><br>