mapbox / mapbox/mapbox-gl-js

Map may flicker when crossing anti-meridians with Albers projection

Open
#11,248 0 comments 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: 2.6.0-beta.2

browser:Any

Steps to Trigger Behavior
  1. Use http://localhost:9966/debug/projections.html
  2. Set the albers projections with parallels to 90/90
Screen Shot 2021-11-05 at 11 55 30 AM
  • handleWrapJump may need to be updated to support this case
Behavior

https://user-images.githubusercontent.com/7061573/140564693-cf4bc142-edaf-4fde-bdf1-34ad785d91a1.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 with debug/projections.html and reproduce the flicker using the Albers projection with parallels set to 90/90. Read the wrap-jump handling, including handleWrapJump, to trace behavior when crossing the anti-meridian. Done means the map no longer flickers in this case and the relevant projection behavior is covered by an appropriate check.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.