OpenLayers Select and Highlight Feature Example

Select features on click, highlight features on hover.

Select features by clicking on them. Just highlight features by hovering over them.