mapbox / mapbox/mapbox-gl-js

Improve symbol fading stability under non-mercator projections

Open
#11,296 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**: v2.6.0

### Steps to Trigger Behavior

Slowly zoom in with equal earth (not tested on other non-mercator projections), and notice slight fade/in out at regular zoom threshold intervals. This may be due to slight differences of projection during the shear transitions that leads to the symbol occluding against itself.

### Link to Demonstration
#### Equal-earth

https://user-images.githubusercontent.com/7061573/142489360-6c170693-2eb7-4836-a013-b3c23b18db38.mov

#### Mercator

https://user-images.githubusercontent.com/7061573/142489343-8173f005-efaf-4339-8bf1-456168b39ae4.mov

### Expected behavior

Labels fading remain stable/doesn't fade between zoom level if the geolocation is the same, similar to mercator.

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 with the linked Equal-earth and Mercator demonstrations while slowly zooming at a fixed geolocation. Compare symbol fading across the projection's zoom transitions; done means labels remain stable between zoom levels under Equal-earth as they do under Mercator.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.