mapbox / mapbox/mapbox-gl-draw

Mapbox Draw - Free Draw Tool

Open
#699 23 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello,

Currently the mapbox has a drawing tool. However, it only allows you to draw through geometric shapes.

My suggestion is to develop a free drawing tool on the map.

Steps to Trigger Behavior

A new drawing format is added to the mapbox-draw;
The user clicks on map and move the mouse;
On mouseup, the drawed area is filled.
Expected Behavior

More interactive maps, that allow to filter data with the drawed area.

Thanks,
Nuno

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

Review the existing drawing formats and mouse-event flow in mapbox-gl-draw before deciding how a free-draw mode fits alongside geometric shapes. Verify the interaction from mouse press and movement through mouseup, then confirm that the completed area is filled and available for filtering map data.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.