mapbox / mapbox/mapbox-gl-draw

Option to disable multi-select (shift+click) in draw.selectionchange

Open
#986 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

Hey, I would like to be able to disable multi-select of features by using shift+click. This is a functionality of draw.selectionchange. I have already disabled boxSelect and keybindings, but it didn't help.

Is there any current workaround for this, in order to prevent multi-select?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the draw.selectionchange entry in docs/API.md and review how the existing boxSelect and keybindings options relate to shift+click selection. The change is done when users can disable shift+click multi-selection without disabling unrelated drawing or selection behavior; the issue does not name a test or implementation file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.