visgl / visgl/deck.gl

[Bug] Deck.GL GeoJsonLayer incorrectly renders self intersecting polygons

Open
#8,310 3 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

The geojson layer incorrectly renders self intersecting polygons.

Currently those polygons look like this:

image

Flavors
  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS
Expected Behavior

image

Steps to Reproduce

StackBlitz

Environment
  • Framework version: 8.9.32
  • Browser: Chrome 119.0
  • OS: Windows 10 & 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 linked StackBlitz reproduction at src/App.tsx and inspect how the React GeoJsonLayer is configured for the self-intersecting polygon. Reproduce the rendering in Chrome, then trace the GeoJsonLayer rendering path to identify the cause. Done means the polygon matches the expected rendering for the provided case.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.