mapbox / mapbox/mapbox-gl-js

Aliasing on alternate-projected edges of the world

Open
#11,164 2 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

There is visible aliasing ("steps") on edges of the world when using alternate projections:

![](https://user-images.githubusercontent.com/1421652/137520478-a1f7c4e1-ca84-4907-a8c9-8c425cfa7e97.png)

Fill layers are anti-aliased, but there was previously no need to anti-alias background layers or modify tile clipping masks to accommodate anti-aliased edges. This changes with alternate projections. Not sure how involved that is, but if it's an easy fix, we should do it before the final release to make thematic world maps look nicer. cc @ansis @ryanhamley

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 the attached screenshot and reproduce the aliasing on world edges when using alternate projections. Trace where background-layer edges and tile clipping masks are handled, then verify that the visible steps are removed without regressing anti-aliased fill layers; the report names no file or test.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.