Implementa nb - #183
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.