Skip to content

feat(terra-draw): add allowManualSelection option to TerraDrawSelectMode#842

Merged
JamesLMilner merged 1 commit intoJamesLMilner:mainfrom
chrisgordon0:feat/allow-manual-selection
Mar 18, 2026
Merged

feat(terra-draw): add allowManualSelection option to TerraDrawSelectMode#842
JamesLMilner merged 1 commit intoJamesLMilner:mainfrom
chrisgordon0:feat/allow-manual-selection

Conversation

@chrisgordon0
Copy link
Contributor

@chrisgordon0 chrisgordon0 commented Mar 18, 2026

Description of Changes

Adds a new allowManualSelection option to TerraDrawSelectMode. When set to false, all click-based selection is disabled and features can only be selected programmatically via draw.selectFeature(id).

When combined with the existing allowManualDeselection: false, this enables fully-controlled selection via the api.

The option defaults to true so there is no change to existing behaviour.

Link to Issue

#841

PR Checklist

  • The PR title follows the conventional commit standard
  • There is a associated GitHub issue
  • If I have added significant code changes, there are relevant tests
  • If there are behaviour changes these are documented

@JamesLMilner JamesLMilner merged commit 79d5919 into JamesLMilner:main Mar 18, 2026
8 of 9 checks passed
@chrisgordon0 chrisgordon0 deleted the feat/allow-manual-selection branch March 19, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants