new GoflowLinesMove(OlMap, Callback, Layers, userStyle, clickFinish)
| Name | Type | Description |
|---|---|---|
OlMap |
module:types~olMap |
The map of all layers OlMap |
Callback |
function |
Callback function that the developer should always wait for a Features Array element |
Layers |
Array.<String> |
optional
The layers that you want to obtain in the intersection in case of not passing any will be done on all |
userStyle |
module:types~styleFromUser |
optional
The style we want to put on the polygon's drawing layer |
clickFinish |
boolean |
optional
If we want the delete function to be eliminated when drawing |
Extends
- GOInteractionTool
- undefined
Methods
-
animateline(name){void}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 250 -
Method desc
Name Type Description namestring Description of the condition
Returns:
Type Description void Return nothing -
calcCrow(lon1, lat1, lon2, lat2){number}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 349 -
Calculate the speed of the line
Name Type Description lon1any Logitude of the first point
lat1any Latitude of the first point
lon2any Logitude of the second point
lat2any atitude of the second point
Returns:
Type Description number Return speed in km/h -
changeStyle(userStyle)
Interactions/Hydraulics/interact/FlowLines/index.ts, line 167 -
Change the style of the layer
Name Type Description userStylemodule:types~userStyle The style we want to put on the polygon's drawing layer
-
gradient(){CanvasGradient}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 402 -
Set the canvas gradient style
Returns:
Type Description CanvasGradient Return the canvas gradient -
setDefaultFlowStyle(){module:types~Style}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 377 -
Set the default flow style
Returns:
Type Description module:types~Style Return the style of the line -
startAnimationGoLayer(){void}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 150 -
Initialize the animation of the poligon
Returns:
Type Description void Return nothing -
startAnimationLayer(){void}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 159 -
Initialize the animation of the poligon
Returns:
Type Description void Return nothing -
styleFunc(){Style}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 416 -
Style te line of the flow
Returns:
Type Description Style Return the style of the line -
styleFunc2(){Style}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 436 -
Style te line of the flow number 2 (the second line)
Returns:
Type Description Style Return the style of the line number 2 (the second line) -
styleFunc3(){Style}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 456 -
Style te line of the flow number 3 (the third line)
Returns:
Type Description Style Return the style of the line number 3 (the third line) -
styleFunc4(){Style}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 475 -
Style te line of the flow number 4 (the fourth line)
Returns:
Type Description Style Return the style of the line number 4 (the fourth line) -
styleFunc5(){Style}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 494 -
Style te line of the flow number 5 (the fifth line)
Returns:
Type Description Style Return the style of the line number 5 (the fifth line) -
toRad(Value){number}
Interactions/Hydraulics/interact/FlowLines/index.ts, line 368 -
Converts numeric degrees to radians
Name Type Description Valueany Value to convert
Returns:
Type Description number Return the value in radians -
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.
