terra-draw icon indicating copy to clipboard operation
terra-draw copied to clipboard

[Feature Request] Allow basic editing whilst in base drawing modes

Open JamesLMilner opened this issue 10 months ago • 2 comments

Is your feature request related to a problem? Please describe. It would be valuable to be able to make light edits to a geometry without explicitly entering edit mode. We could provide a 'editable' property for the 3 main modes:

  • TerraDrawPointMode
  • TerraDrawLineStringMode
  • TerraDrawPolygonMode

That allows for in-mode editing of the feature without explicitly having to switch to Select mode. If this is popular we could potentially offer it for other built in modes later.

Describe your proposed idea for the solution to this problem We could provide a 'editable' property:

new TerraDrawPolygonMode({
	editable: true
})

Which provides behaviour similar to the OpenLayers editing tools.

Describe alternatives you've considered We could just keep things as they are and people can edit features in select mode

Additional context Add any other context or screenshots about the feature request here.

JamesLMilner avatar Jan 20 '25 19:01 JamesLMilner