mapbox / mapbox/mapbox-gl-js

`setTerrain` forces map zoom when panning to poles in globe projection

Open
#11,981 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: [v2.9.0-beta.2](https://github.com/mapbox/mapbox-gl-js/releases/tag/v2.9.0-beta.2)

**browser**: v101.0.4951.64

### Steps to Trigger Behavior

1. [Add terrain](https://docs.mapbox.com/mapbox-gl-js/example/add-terrain/) with a globe projection
2. Pan to north pole
3. More exaggerated terrain causes greater zooms

### Link to Demonstration

https://codepen.io/willymaps/pen/oNEaKKG

### Actual Behavior

https://user-images.githubusercontent.com/12721145/172961996-86c5a6bb-3b9a-4a0e-ab3c-c8dfc239ffab.mov

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 by reproducing the behavior in the linked CodePen using the add-terrain example, globe projection, and a pan toward the north pole. Compare the zoom behavior with different terrain exaggerations; done means panning to the poles no longer forces increasing zoom in globe projection.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.