Class: GoDrawSelectByPolygon

GoDrawSelectByPolygon

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

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

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 34
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/GoDrawSelectByPolygon.ts, line 220

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/GoDrawSelectByPolygon.ts, line 228

Clear Draw polygon select;

Returns:
Type Description
void Return nothing

getDraw(){module:types~Draw}

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

Get draw interaction

Returns:
Type Description
module:types~Draw Return Draw

getDrawLayer(){module:types~VectorLayer}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 205

Get drawLayer

Returns:
Type Description
module:types~VectorLayer Return VectorLayer

removeDraw(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 238

Stop Draw interaction and Remove this from Map

Returns:
Type Description
void Return nothing

setActivate(active)

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 212

Active or desactive the interaction

Name Type Description
active boolean

setDefaultStyle(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 255

Set the style by default of the layer

Returns:
Type Description
void Return nothing

setDefaultStyleDraw(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 278

Draw the default polygon

Returns:
Type Description
void Return nothing

setDefaultStyleIniPoint(){void}

Interactions/Selection/interact/SelectByPolygon/GoDrawSelectByPolygon.ts, line 301

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.