new GoHoverFeature(userFeatures, userStyle)
Interactions/Features/interact/Hover/GoHoverFeature.ts, line 18
| Name | Type | Description |
|---|---|---|
userFeatures |
module:types~Feature.<Geometry> |
Description of the condition |
userStyle |
module:types~styleFromUser |
optional
Description of the condition |
Properties:
| Name | Type | Description |
|---|---|---|
hoverLayer |
VectorLayer.<VectorSource> | VectorImageLayer.<VectorSource> | Private - The layer to hover |
style |
Style | undefined | Private - The style. |
Extends
- GOInteractionTool
- undefined
Methods
-
addFeatures(features){void}
Interactions/Features/interact/Hover/GoHoverFeature.ts, line 126 -
This function is used to add the hover feature to the map.
Name Type Description featuresArray.<Feature> The features to add
Returns:
Type Description void Return nothing -
changeStyle(userStyle){void}
Interactions/Features/interact/Hover/GoHoverFeature.ts, line 99 -
This function is used to change the style of the hover feature.
Name Type Description userStylemodule:types~styleFromUser Description of the condition
Returns:
Type Description void Return nothing -
clearFeatures(){void}
Interactions/Features/interact/Hover/GoHoverFeature.ts, line 135 -
This function is used to remove the hover feature from the map.
Returns:
Type Description void Return nothing -
getLayer(){VectorLayer.<VectorSource>}
Interactions/Features/interact/Hover/GoHoverFeature.ts, line 109 -
This function is used to get the layer of the hover feature.
Returns:
Type Description VectorLayer.<VectorSource> Return the vector layer of the hover feature -
inherited typeLayerHidraulic(feature){string}
Interactions/utils/GoInteractionTool.ts, line 20 -
This function allow to create a style for the hidraulic layer.
Name Type Description featuremodule:types~FeatureLike The feature to style
Returns:
Type Description string Return the new style of the feature.
