Polygon border with line-offset is not closed
Open
Nobody has claimed this yet.
bug :lady_beetle:
needs investigation :mag:
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description

mapbox-gl-js version: 0.54.0-beta.2
Steps to Trigger Behavior
Geometry example:
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[30.837589970270813,59.64936661137284],[30.83686460283053,59.6484792324394],[30.838086274316026,59.64888916584533],[30.837589970270813,59.64936661137284]]]}}]}
Set line-offset to > 1
Expected Behavior
Polygon border with offset is closed.
Actual Behavior
Polygon border with offset is not closed.
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 supplied Polygon geometry in mapbox-gl-js 0.54.0-beta.2 with line-offset set above 1, and inspect the rendering path responsible for polygon borders. Done means the offset border is visibly closed for this example and equivalent polygon cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100