Applying too much bottom padding in globe projection renders a circle around the globe
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
After applying enough bottom padding in globe view, a donut shape appears on the globe, leaking the background color of the page. This only seems to happen with bottom padding and seems to occur when enough of the globe goes outside the viewport.

mapbox-gl-js version: 2.13.0
browser: Tested on Chrome 111, Safari 16 mac & iOS, Firefox 111,
Steps to Trigger Behavior
- Set projection to globe
- Increase bottom padding until issue appears
Link to Demonstration
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 by reproducing the globe projection and increasing bottom padding in the linked JSFiddle, checking the behavior in the listed browsers. Trace the globe rendering path responsible for the viewport edge and padding; done means no donut or page-background leak appears when the globe extends beyond the viewport.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100