/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.
| Name | Type | Description |
|---|---|---|
e | object | The interaction event object. |
mapview | mapview |
(inner) escape(e)
Ends the modification interaction when the Escape key is pressed.
| Name | Type | Description |
|---|---|---|
e | Object | The event object. |
(inner) finish(feature)
Ends the modification interaction, cleans up event listeners, and removes the interaction from the map.
| Name | Type | Description |
|---|---|---|
feature | Object | The modified feature to be passed to the callback function. |
(inner) getFeature() → {Object}
Returns the modified feature as a GeoJSON object.
The modified feature in GeoJSON format.
- Type:
- Object
(inner) modify Defines the behaviour for a modification interaction performed on the map.(params, mapview)
| Name | Type | Description |
|---|---|---|
params | Object | Extra parameters for the mapview.interaction. |
mapview | mapview | 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.
| Name | Type | Description |
|---|---|---|
e | Object | The event object. |
mapview | Object | The mapview object. |
params | Object | The parameters object containing geometry information. |