I'm loading a geojson file into openlayers to show some polygons. From this file I also create a list of all names of these polygons.
Now I want to change the color of a polygon when selected from the list (clicked on the name).
What I've tried is to create a style (http://docs.openlayers.org/library/feature_styling.html) but I couldn't find out how to add this style to the polygon. How can I do that?