mapbox / mapbox/mapbox-gl-js

Heatmap layer doesn't consider adjacent tiles for rendering if they are not visible

Open
#9,919 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version**: `v1.11.1`

**browser**: Chrome / Firefox

![heatmap_issue](https://user-images.githubusercontent.com/20856381/89714513-8275b100-d99f-11ea-8f73-2274adc7f044.gif)

### Steps to Trigger Behavior

1. Create a dense point grid and use it as heatmap source.
2. Choose a large radius for `heatmap-radius`.
3. Zoom map to a high zoom level.
4. Pan the map around at the same zoom level.

### Link to Demonstration

https://jsbin.com/zegisuveda/1/edit?html,output (just pan the map vertically)

### Expected Behavior

Heatmap layer doesn't change the appearance while panning the map at the same zoom level.

### Actual Behavior

Panning the map changes the appearance of the heatmap layer.

When this happens, it looks like not all points are considered for heatmap rendering.

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 by reproducing the behavior in the linked JSBin with a dense point grid, a large heatmap radius, and high-zoom panning. Compare the heatmap while panning at a fixed zoom; done means adjacent points are consistently included and the layer does not change appearance unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
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.