mapbox / mapbox/mapbox-gl-js

Add the ability to not draw text that is illegible

Open
#9,569 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
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:

![example](https://user-images.githubusercontent.com/18282135/79339894-7ada5a00-7f21-11ea-9e9e-b8ab70bea3e3.png)

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.