[OpenLayers-Users] Manually 'select' feature

Alex Brandsen alex.brandsen at gmail.com
Fri Jul 23 12:18:05 EDT 2010


Thanks for replying!

getFeatureById() and OpenLayers.Layer.Vector.selectedFeatures both return
feature(s), I don't see how I can use these functions to select features?

Alex.

On Thu, Jul 22, 2010 at 2:56 PM, emmexx <emmexx at tiscalinet.it> wrote:

> Il 22/07/2010 15:24, Alex Brandsen scrisse:
> > Hi all,
> >
> > I was wondering if there is a way to manually select a feature, i.e.
> > when a feature is clicked, I want to select a feature next to it as well.
> > I can't seem to find any documentation on this, unfortunately.
>
> You can use:
>
> OpenLayers.Layer.Vector.getFeatureById()
>
> or the undocumented/private/I can't find it in the api docs
>
> OpenLayers.Layer.Vector.selectedFeatures array.
>
> bye
>        maxx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100723/fa2038cd/attachment.html


More information about the Users mailing list