[Bug] draw polygon don't work with projection globe
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 8.5k
- Forks
- 1.4k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 3
Description
Description
Unexpected behaviour when projection is globe - polygon is not closed by clicking on vertex or same issue after flyTo animation
Expected Behavior
No response
Steps to Reproduce
https://visgl.github.io/react-map-gl/examples/draw-polygon with projection "globe"
Environment
- Framework version: latest
- Map library: mabox-gl 2
- Browser: chrome
- OS: macos 13
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the draw-polygon example linked in the issue and reproduce it using the globe projection in Chrome. Check polygon closure when clicking an existing vertex and after a flyTo animation; done means both interactions close the polygon reliably without changing behavior for other projections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- 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