cds-astro / aladin-lite

An astronomical HiPS visualizer in the browser
https://aladin.cds.unistra.fr/AladinLite/
GNU General Public License v3.0
103 stars 42 forks source link

Add the possibility to store the cut values for the different formats #191

Open OlivierMarchal opened 3 months ago

OlivierMarchal commented 3 months ago

The different cut values are not stored in memory so everytime a user changes the format from 'png' to 'fits' and then back to 'png', the default values are restored.

To reproduce the problem : 1) go to https://aladin.cds.unistra.fr/AladinLite/doc/API/examples/AL-in-responsive-div/ 2) Choose for example Panstarrs dr1 g and select format = 'png'

Capture d’écran 2024-08-27 à 16 33 42

3) set mincut to -1 4) set format to 'fits' then back to 'png' : the mincut is now 0, the default value, and not what the user set before.