new Hover(options)
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
olx.interaction.HoverOptions |
Properties
|
- Source:
Fires:
- hover, hover-enter, hover-leave (directement sur le viewer)
Extends
- ol_interaction_Interaction
Methods
-
handleMove_(e)
Get features whenmove
. -
Get features whenmove
Parameters:
Name Type Description eol.event "move" event
- Source:
-
setActive(b)
Activate / deactivate interaction
. -
Activate / deactivate interaction
Parameters:
Name Type Description bboolean - Source:
-
setCursor(cursor)
Set cursor on hover
. -
Set cursor on hover
Parameters:
Name Type Description cursorstring css cursor propertie or a function that gets a feature, default: none
- Source:
-
setFeatureFilter(filter)
Feature filter to get only one feature
. -
Feature filter to get only one feature
Parameters:
Name Type Description filterfunction a function with two arguments, the feature and the layer of the feature. Return true to select the feature
- Source:
-
setMap(map)
Remove the interaction from its current map, if any, and attach it to a new map, if any.
-
Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass
nullto just remove the interaction from the current map.Parameters:
Name Type Description mapol.Map Map.
- Source: