mapbox / mapbox/mapbox-gl-js

Map jumps across antimeridian with Winkel Tripel and conic projections

Open
#11,298 1 comment 0 reactions 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.6.0 & v2.6.1

**browser**: All (Tested on Firefox on Mac and Chrome on Android)

### Steps to Trigger Behavior

1. Set projection to Winkel Tripel, Albers, or Lambert Conformal Conic
2. Move the map quickly into a corner

https://user-images.githubusercontent.com/14878684/142512899-f74f488a-576e-40ea-b3e9-0c25d8c8fb7f.mov

https://user-images.githubusercontent.com/14878684/142513497-feb02013-73f0-4dd6-9bb0-cc41f3f91f7d.mov

This [PR](https://github.com/mapbox/mapbox-gl-js/issues/10447) fixed a similar bug and may be a helpful reference.

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 jump by switching to Winkel Tripel, Albers, or Lambert Conformal Conic and moving the map quickly into a corner. Use issue #10447 as the reference for the similar fix; done means the map no longer jumps across the antimeridian in these projections.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
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.