mapbox / mapbox/mapbox-gl-js

text-variable-anchor makes the text disappear only at zoom 5 in 'globe' projection

Open
#13,294 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Tested on mapbox-gl 3.6.0 in Chrome.

[Layer code](https://gist.github.com/nspringer/59a3f47ca8a7e1b3c5a83a6e55d13ff5)

'globe' projection
![Screen 2024-09-29 005](https://github.com/user-attachments/assets/bb4b7fad-9104-483b-b3d4-4a2ea2ea2bf0) ![Screen 2024-09-29 006](https://github.com/user-attachments/assets/0ee0bbdc-2e5c-417e-94b7-3c1e93279b1d)
![Screen 2024-09-29 003](https://github.com/user-attachments/assets/9940ac74-a986-4904-b0e6-37c7c1965d8c) ![Screen 2024-09-29 004](https://github.com/user-attachments/assets/35b7f401-2ee4-4da1-8b02-8bcf74e8fb09)

'mercator' projection
![Screen 2024-09-29 009](https://github.com/user-attachments/assets/9c894946-bfa4-4a19-8815-0d3d4853a303) ![Screen 2024-09-29 008](https://github.com/user-attachments/assets/9844470f-b096-479b-98ba-2116e56e4e82)
![Screen 2024-09-29 010](https://github.com/user-attachments/assets/cc00ce1a-3a48-4c50-a5f6-6b156e4d7752) ![Screen 2024-09-29 011](https://github.com/user-attachments/assets/42b16a6c-cfd5-4b7b-9e62-ad9674011682)

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 supplied layer code and reproduce the report in Chrome using mapbox-gl 3.6.0, comparing globe and mercator projections at zoom 5. Trace the text-variable-anchor behavior in the globe projection. Done means the text remains visible at the reported zoom without regressing the mercator comparison.

Written by the indexing model from the issue text.

Assessment

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