Add the ability to not draw text that is illegible
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
We have an application where we have fairly detailed maps and the camera displays in 3D (with a pitch of 60 degrees).
Some text becomes illegible when drawn far from the camera, especially road names in built-up dense residential areas that are styled with a "symbol-placement" of "line" .
A few examples are shown in the red ellipses in the screenshot below:

Is it possible to have a flag that would allow text that would be rendered illegibly (or below a certain size) to not actually be drawn (this would improve render performance and declutter the map for areas further from the camera)?
The root problem is that at the given zoom level we only want the text rendered when close to the camera.
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides a screenshot and describes illegible text in pitched 3D maps, but names no files, tests, or entry points. Trace text rendering and symbol-placement behavior in mapbox-gl-js, then define the flag's threshold and verify that distant text is omitted without affecting readable labels.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100