ArcLayer The line width is too large, causing anomalies.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
Description
Hello, I’ve encountered a problem during the use of the ArcLayer. When setting the line width sufficiently large and adjusting the map zoom, it results in a clipping effect. How can I avoid this from happening?
Flavors
- Script tag
- React
- Python/Jupyter notebook
- MapboxOverlay
- GoogleMapsOverlay
- CartoLayer
- ArcGIS
Expected Behavior
No response
Steps to Reproduce
this.DeckLayer = new MapboxLayer({
id,
type: ArcLayer,
data,
autoHighlight: true,
getWidth: d => {
return : 100
},
widthUnits: 'pixels',
})
.....
this.map.addLayer(this.DeckLayer)
Environment
- Framework version: @deck.gl/layers@8.8.12, deck.gl@8.8.20
- Browser: Chrome 119
- OS: Windows 11
Logs
No response
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 with the ArcLayer and MapboxLayer reproduction using widthUnits set to pixels, then investigate the clipping seen when changing the map zoom with a large getWidth value. Compare the behavior against the reported deck.gl versions and determine what test or example can reliably reproduce it. Done means large ArcLayer widths no longer produce the reported clipping effect during zooming.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100