/mapview/interactions/modify

The module exports the modify interaction method which is bound to a mapview in the decorator method.

Requires

Methods

(inner) deleteCondition(e, mapview)

Handles single-click events by displaying the vertex deletion action for eligible geometries.

Parameters:
NameTypeDescription
eobject

The interaction event object.

mapviewmapview

(inner) escape(e)

Ends the modification interaction when the Escape key is pressed.

Parameters:
NameTypeDescription
eObject

The event object.

(inner) finish(feature)

Ends the modification interaction, cleans up event listeners, and removes the interaction from the map.

Parameters:
NameTypeDescription
featureObject

The modified feature to be passed to the callback function.

(inner) getFeature() → {Object}

Returns the modified feature as a GeoJSON object.

Returns:

The modified feature in GeoJSON format.

Type: 
Object

(inner) modify Defines the behaviour for a modification interaction performed on the map.(params, mapview)

Parameters:
NameTypeDescription
paramsObject

Extra parameters for the mapview.interaction.

mapviewmapview

The mapview object to which the interaction will be added.

(inner) multipolygon(e, mapview, params)

Adds the vertex deletion action when the selected polygon ring has enough vertices.

Parameters:
NameTypeDescription
eObject

The event object.

mapviewObject

The mapview object.

paramsObject

The parameters object containing geometry information.