Improve alignment of symbols along lines
Open
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

These one-way arrows are drawn by rendering road layer as symbols, and using a unicode arrow as the symbol text. Why is one symbol aligned perfectly in the road's middle, while the other is significantly off-center?
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 inspecting the linked styles/emerald-v7.json road-layer symbol definitions and comparing the two one-way-arrow configurations. Then trace symbol rendering and alignment in mapbox-gl-js; done means explaining the differing offsets and correcting the behavior so the arrows align consistently along the road.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100