Class: GoSelectByPolygon

GoSelectByPolygon

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

new GoSelectByPolygon(OlMap, geometryPolygon, Callback, Layers)

Interactions/Selection/interact/SelectByPolygon/GoSelectByPolygon.ts, line 24
Name Type Description
OlMap olMap

The map of all layers OlMap

geometryPolygon Feature.<Polygon>

New Polygon to intersect in layers to get Features.

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

Extends

Methods

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.