mapbox / mapbox/mapbox-gl-js

Terrain distortion when panning or zooming near the edge boundaries of Mercator projection maps

Open
#13,564 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged 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

Mapbox Console

### Browser and version

Brave 1.82.172 (Fingerprint protection disabled) Chromium 140.0.7339.207

### Expected behavior

The terrain should not be distorting/growing/peaking/spiking when moving near the edges of the Mercator projection map, or when zooming in on the terrain.

### Actual behavior

When panning or zooming towards the edges of a Mercator projection map, the 3D terrain becomes distorted.

https://github.com/user-attachments/assets/dfa42af6-de1e-4cd8-b9fe-c7e21a63e2f1

### Link to the demonstration

https://console.mapbox.com/studio

### Steps to trigger the unexpected behavior

Switch projection to Mercator and pan + zoom towards the edge boundaries of the map.

### Relevant log output

```shell

```

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

Reproduce the issue in the Mapbox Console demonstration by switching to the Mercator projection, then panning and zooming toward the map edges. Trace the terrain rendering path responsible for edge-boundary distortion; done means terrain no longer grows, peaks, spikes, or otherwise distorts near Mercator boundaries.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.