[OpenLayers-Users] How to select feature from code?

Maciej Wisniowski pigletto at gmail.com
Thu Apr 8 15:21:10 EDT 2010


 >  how to select specific feature on the map from code, while I have
 > access to desired feature object?

For the record:

I've realized that

SelectFeature.select(feature)

is the proper way of selecting feature from the code but you have to use 
developement version of OpenLayers, as version 2.8 doesn't call 
necessary handlers in 'select' method.

-- 
Maciej Wiśniowski



More information about the Users mailing list