Skip to content

fix: keep the overlay background of a zoomed heatmap on the zoomed grid, and select the right map cells - #151

Merged
jvdd merged 5 commits into
mainfrom
fix/heatmap-overlay-zoom
Oct 5, 2026
Merged

jvdd merged 5 commits into
mainfrom
fix/heatmap-overlay-zoom

Conversation

@jvdd

@jvdd jvdd commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Two overlay bugs on heatmap targets (histogram2d, geo_histogram2d, corr_heatmap), as decided in #104. Overlay mode stays.

  • On a zoom with an active selection, the engine now sends the background of a heatmap target again, so the faded layer follows the zoomed grid. Only traces whose axes the event changed get this extra work.
  • A box select on a map reads each selected cell from the layer it was picked in. Before, it read the background layer, so a box after a zoom could select a much larger area (for example lon 0 to 14.4 instead of 2 to 8).

Tests: an engine test for the resent background; browser tests that the background grid equals the filtered grid after a zoom, and that a box select after a zoom commits the drawn cells and filters a linked figure to them.

Closes #104

@codspeed

codspeed Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 32 untouched benchmarks


Comparing fix/heatmap-overlay-zoom (f43c3c6) with main (7e4b61a)

Open in CodSpeed

@jvdd
jvdd merged commit c449485 into main Oct 5, 2026
19 checks passed
@jvdd
jvdd deleted the fix/heatmap-overlay-zoom branch October 5, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider dropping overlay mode for heatmap-like targets (geo_histogram2d, histogram2d, corr_heatmap)

1 participant