mapbox / mapbox/mapbox-gl-js

Undistort to mercator stretches heatmap blobs

Open
#11,245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: 2.6.0-beta.2

**browser**:Any

### Steps to Trigger Behavior

1. Use `http://localhost:9966/debug/heatmap.html`
2. Set Projection `map.setProjection('equirectangular')`
3. Zoom in on high latitudes

### Expected Behavior
heatmap blobs maintain circular shape

### Actual Behavior
They get stretched to ellipses

https://user-images.githubusercontent.com/1449257/140562263-44920683-eb30-4a85-bb39-6ac8c9e93b0a.mov

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

Reproduce the issue from debug/heatmap.html using map.setProjection('equirectangular'), then zoom at high latitudes and compare the heatmap blobs with the expected circular shape. Trace the heatmap rendering and projection path to identify where the stretching occurs; done means blobs remain circular under this projection.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.