Class: GoDrawSelectByPolygonInCluster

GoDrawSelectByPolygonInCluster

Interaction that allows creating a polygon and obtaining the elements that intersect with it:

new GoDrawSelectByPolygonInCluster(OlMap, Callback, Layers, userStyle, clickFinish)

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 33
Name Type Description
OlMap 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

Methods

changeStyle(userStyle)

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 182

Change the style of the layer

Name Type Description
userStyle module:types~userStyle

The style we want to put on the polygon's drawing layer

clearLayerDraw(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 190

Clear Draw polygon select;

Returns:
Type Description
void Return nothing

getDraw(){module:types~Draw}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 159

Get draw interaction

Returns:
Type Description
module:types~Draw Return Draw

getDrawLayer(){module:types~VectorLayer}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 167

Get drawLayer

Returns:
Type Description
module:types~VectorLayer Return VectorLayer

removeDraw(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 197

Stop Draw interaction and Remove this from Map

Returns:
Type Description
void Return nothing

setActivate(active)

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 174

Active or desactive the interaction

Name Type Description
active boolean

setDefaultStyle(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 210

Set the style by default of the layer

Returns:
Type Description
void Return nothing

setDefaultStyleDraw(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 233

Draw the default polygon

Returns:
Type Description
void Return nothing

setDefaultStyleIniPoint(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygonInCluster.ts, line 256

Set the initial point style

Returns:
Type Description
void Return nothing

inherited typeLayerHidraulic(feature){string}

Interactions/utils/GoInteractionTool.ts, line 20

This function allow to create a style for the hidraulic layer.

Name Type Description
feature module:types~FeatureLike

The feature to style

Returns:
Type Description
string Return the new style of the feature.