text-padding does not behave as described.
Nobody has claimed this yet.
- 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
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
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