mapbox / mapbox/mapbox-gl-js

How to set the draw option to be inactive by default

Open
#12,591 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version** : 2.12.0
**mapbox-gl-draw version** : 1.4.0

### Question
If you look below the draw option **is active** by default . I want to know how to set it to **inactive by default** when the map first renders?

![image](https://user-images.githubusercontent.com/39615077/221404976-e3140869-3ddd-451e-97c9-e887178e29be.png)

### Links to related documentation
https://github.com/mapbox/mapbox-gl-draw

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 linked mapbox-gl-draw repository and its documentation, then compare the question with the Mapbox GL JS help documentation. Determine whether guidance is missing for making the draw control inactive when the map first renders. Done means the relevant documentation clearly explains the supported configuration, with an example if the project’s documentation style calls for one.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.