Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JamesLMilner opened this issue Jan 20, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@JamesLMilner
Copy link
Owner

JamesLMilner commented Jan 20, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant