Skip to content

Add colormap/min-max to MapLibre HEALPix view; hide globe-only controls#7

Merged
annefou merged 1 commit into
mainfrom
healpix-maplibre-colormap
Jun 4, 2026
Merged

Add colormap/min-max to MapLibre HEALPix view; hide globe-only controls#7
annefou merged 1 commit into
mainfrom
healpix-maplibre-colormap

Conversation

@annefou

@annefou annefou commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

The HEALPix renderer is the 2D MapLibre map, but it previously ignored the store colormap (hardcoded RdYlBu) and the min/max bounds, and the control panel still showed Projection / Land-Sea Mask / Coastlines controls that only drive the unused Three.js globe.

  • colormapLut.ts: render the GLSL colormaps to a 256-entry RGB LUT via an offscreen WebGL pass, so non-WebGL renderers get identical colors.
  • HealpixMaplibre.vue: color GeoJSON from the store colormap + invert + the selection (min/max) range, with instant recolor-from-cache on change.
  • Controls.vue / GlobeView.vue: hide Projection, Land-Sea Mask and Coastlines controls for the HEALPix view (they have no effect on a 2D map).
  • vite.config.ts: dev-only /local static middleware (returns 404 for missing files) to serve locally-downloaded Zarr stores for testing.

The HEALPix renderer is the 2D MapLibre map, but it previously ignored the
store colormap (hardcoded RdYlBu) and the min/max bounds, and the control
panel still showed Projection / Land-Sea Mask / Coastlines controls that only
drive the unused Three.js globe.

- colormapLut.ts: render the GLSL colormaps to a 256-entry RGB LUT via an
  offscreen WebGL pass, so non-WebGL renderers get identical colors.
- HealpixMaplibre.vue: color GeoJSON from the store colormap + invert + the
  selection (min/max) range, with instant recolor-from-cache on change.
- Controls.vue / GlobeView.vue: hide Projection, Land-Sea Mask and Coastlines
  controls for the HEALPix view (they have no effect on a 2D map).
- vite.config.ts: dev-only /local static middleware (returns 404 for missing
  files) to serve locally-downloaded Zarr stores for testing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@annefou
annefou merged commit 48cdcf5 into main Jun 4, 2026
2 checks passed
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.

1 participant