mapbox / mapbox/mapbox-gl-js

Fix debug tile ID rendering for projected tiles

Open
#10,737 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**:
`projections`

**browser**:
any

### Steps to Trigger Behavior

1. Open `projections.html` debug page
2. Turn on `map.showDebugTiles`

### Expected Behavior
Tile IDs should be in the upper left corner (or the approximate equivalent) and rendered in the proper size

### Actual Behavior
Tile IDs are rendered in their Mercator positions still and the sizes can be wrong (possibly due to tile loading issues?)

*note the tile boundary to the left of these tile IDs*
Screen Shot 2021-06-02 at 9 13 35 AM

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 projections.html debug page and reproduce the issue with map.showDebugTiles enabled. Trace how projected tile IDs are positioned and sized, then verify that the IDs appear in the upper-left area at the proper size rather than in Mercator positions.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.