mapbox / mapbox/mapbox-gl-draw

Incorrect Positioning of Intermediate Points When Drawing Polygons

Open
#1,220 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version**: 3.3.0
**mapbox-gl-draw version**: 1.4.3
**browser**: Google Chrome

1. Access this link: [Mapbox GL Draw Example](https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/)
2. Zoom out / Pan to show America
3. Draw a polygon
4. Notice that the intermediate points are incorrectly positioned

### Actual Behavior

![image](https://github.com/mapbox/mapbox-gl-draw/assets/4217810/9dc1815a-a942-43a5-b5fb-1e4b20a3b2b9)

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 Example and reproduce the issue using mapbox-gl-js 3.3.0 and mapbox-gl-draw 1.4.3 in Chrome. Zoom out or pan to show America, draw a polygon, and inspect how the intermediate points are positioned. Done means those points remain correctly positioned while viewing the polygon at that extent.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
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.