arc.js has a weird rendering artifact over the north pole
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- data-visualization, frontend
Research direction
Start with the provided arc.js loading snippet and the arc.GreatCircle(...).Arc(100, { offset: 20 }) reproduction. Inspect how the generated line is represented by line.json() and rendered through the LineString source, then verify the north-pole case no longer shows the reported artifact.
Written by the indexing model from the issue text.
Description
In the process of investigating this issue (https://github.com/mapbox/mapbox-gl-js/issues/13121), I discovered some weird rendering artifacts when arc.GreatCircle draws a line across/near the North Pole:
<script src="https://api.mapbox.com/mapbox.js/plugins/arc.js/v0.1.0/arc.js"></script>
let arcs = [];
let start = { x: -122.375, y: 37.61899948120117};
let end = { x: 55.3643989563, y: 25.2527999878};
var generator = new arc.GreatCircle(start, end);
var line = generator.Arc(100, { offset: 20});
arcs.push(line.json());
map.getSource('LineString').setData({
'type': 'FeatureCollection',
'features': arcs
});
- Dominant language
- JavaScript
- Stars
- 13
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
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.
More from mapbox/mapbox.js-plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
mapbox/mapbox.js-plugins#41 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/mapbox.js-plugins#40 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
mapbox/mapbox.js-plugins#38 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
mapbox/mapbox.js-plugins#13 ·
All issues in mapbox/mapbox.js-plugins
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Mintplex-Labs/anything-llm#6490 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
[quality] workflow-scripts guard reads test:unit:coverage as skipping the unit suite, blocking #632 Openagent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area-clientside-dartpad
Difficulty 2/5 1-3 hours Newbie friendliness 62/100