mapbox / mapbox/mapbox-gl-js

text-padding does not behave as described.

Open
#10,176 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs :scroll: needs investigation :mag:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

The documentation for text-padding is:

Size of the additional area around the text bounding box used for detecting symbol collisions.

This implies that changing this value should not cause any visual change, other than symbols being display/not displayed.

However, increasing this value seems to actually move the label, much like the CSS property padding.

Unclear if the documentation is wrong or the implementation is wrong.

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 by reproducing the text-padding behavior in mapbox-gl-js and compare the observed label movement with the documentation quoted in the issue. Determine whether the implementation or documentation is incorrect; done means the behavior and documentation agree, with the relevant regression coverage updated if applicable.

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
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.