visgl / visgl/deck.gl

ArcLayer The line width is too large, causing anomalies.

Open
#8,306 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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?

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.