The SelectFeature control selects vector features from a given layer on click or hover.
| OpenLayers. | The SelectFeature control selects vector features from a given layer on click or hover. | 
| Properties | |
| events | {OpenLayers.Events} Events instance for listeners and triggering control specific events. | 
| multiple | {Boolean} Allow selection of multiple geometries. | 
| clickout | {Boolean} Unselect features when clicking outside any feature. | 
| toggle | {Boolean} Unselect a selected feature on click. | 
| hover | {Boolean} Select on mouse over and deselect on mouse out. | 
| highlightOnly | {Boolean} If true do not actually select features (that is place them in the layer’s selected features array), just highlight them. | 
| box | {Boolean} Allow feature selection by drawing a box. | 
| onSelect | {Function} Optional function to be called when a feature is selected. | 
| onUnselect | {Function} Optional function to be called when a feature is unselected. | 
| geometryTypes | {Array(String)} To restrict selecting to a limited set of geometry types, send a list of strings corresponding to the geometry class names. | 
| callbacks | {Object} The functions that are sent to the handlers.feature for callback | 
| selectStyle | {Object} Hash of styles | 
| Constructor | |
| OpenLayers. | Create a new control for selecting features. | 
| Functions | |
| setLayer | Attach a new layer to the control, overriding any existing layers. | 
{OpenLayers.Events} Events instance for listeners and triggering control specific events.
control.events.register(type, obj, listener);
| beforefeaturehighlighted | Triggered before a feature is highlighted | 
| featurehighlighted | Triggered when a feature is highlighted | 
| featureunhighlighted | Triggered when a feature is unhighlighted | 
| boxselectionstart | Triggered before box selection starts | 
| boxselectionend | Triggered after box selection ends | 
Create a new control for selecting features.
| layers | {OpenLayers.Layer.Vector}, or an array of vector layers. The layer(s) this control will select features from. | 
| options | {Object} | 
setLayer: function( layers ) 
Attach a new layer to the control, overriding any existing layers.
| layers | Array of {OpenLayers.Layer.Vector} or a single {OpenLayers.Layer.Vector} | 
Attach a new layer to the control, overriding any existing layers.
setLayer: function( layers )