Skip to content

Implementa nb - #183

Merged
glaubervila merged 14 commits into
mainfrom
implementa-nb
Jul 28, 2026
Merged

Implementa nb#183
glaubervila merged 14 commits into
mainfrom
implementa-nb

Conversation

@glaubervila

Copy link
Copy Markdown
Contributor

No description provided.

rcboufleur and others added 14 commits July 10, 2026 11:26
Pre-register the DES DR2 fracdet HiPS maps (g, r, i, z, Y bands) during
Aladin initialization so they show up in the native survey menu, where
users can add them as overlay layers with adjustable opacity.

- Add a `maps` data model (survey > categories > bands) that supports
  future additions (e.g. maglim) without code changes
- Register each map via createImageSurvey and addHiPSToFavorites; in
  aladin-lite 3.7.0-beta the survey menu is fed by hipsFavorites, so
  createImageSurvey (hipsCache) alone is not enough
- Guard the AL:HiPSLayer.added listener with the previous base survey id
  so activating a map overlay no longer recenters the view
New "Maps" button in the ClusterDetail toolbar (both component and
container) opening a dialog to apply systematic maps as a layer on top of
the base image, with opacity and visibility controls.

Available maps are resolved from catalog.settings.default_image through the
new surveyIds field on each map group — currently DES DR2 only (fracdet
g/r/i/z/Y). The button is disabled when the survey has no maps.

- useAladin: getMapsForSurvey, setMapOverlay, setMapOpacity, setMapVisibility
  and removeMapOverlay. The overlay uses a stable layer name per survey
  (map-<surveyKey>), so switching bands replaces the layer instead of
  stacking, and switching the base image preserves the overlay.
- Show/hide toggles opacity between 0 and the stored value, keeping the layer
  in the stack and the tile cache (no re-download when shown again). State
  lives in the app rather than the native toggle(), which keeps an internal
  prevOpacity that can drift out of sync.
- MapsDialog: new component, 100% Material UI, with a map Select, an opacity
  Slider (0–1, step 0.05, default 0.8), and Show/Hide and Remove actions.
@glaubervila
glaubervila merged commit dff8157 into main Jul 28, 2026
0 of 2 checks passed
@glaubervila
glaubervila deleted the implementa-nb branch July 28, 2026 11:50
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.

2 participants