[OpenLayers-Users] Manually 'select' feature

emmexx emmexx at tiscalinet.it
Thu Jul 22 09:56:35 EDT 2010


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



More information about the Users mailing list