OpenLayers JavaScript Mapping Library |
OpenLayers. Control. SelectFeatureSelects vector features from a given layer on click or hover. Inherits fromSummary
<OpenLayers. Control. SelectFeature>Parameters
overFeature
Called when the feature handler detects a mouse-over on a feature. Only responds if this.hover is true. Parameters
outFeature
Called when the feature handler detects a mouse-out on a feature. Only responds if this.hover is true. Parameters
select
Add feature to the layer’s selectedFeature array, render the feature as selected, and call the onSelect function. Parameters
unselect
Remove feature from the layer’s selectedFeature array, render the feature as normal, and call the onUnselect function. Parameters
|
Called when the feature handler detects a click on a feature
clickFeature: function( feature )
Called when the feature handler detects a mouse-over on a feature.
overFeature: function( feature )
Called when the feature handler detects a mouse-out on a feature.
outFeature: function( feature )
Add feature to the layer’s selectedFeature array, render the feature as selected, and call the onSelect function.
select: function( feature )
Remove feature from the layer’s selectedFeature array, render the feature as normal, and call the onUnselect function.
unselect: function( feature )
Set the map property for the control.
setMap: function( map )