mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-04-28 03:43:20 -07:00
This method does add: * reverseLongitude method on aladin object * add a longitudeReversed flag in AladinOptions, when creating the aladin view to reverse the longitude axis globally at start. * BREAKS the HiPS options API by removing the longitudeReversed option at the HiPS level, replacing it by a global flag on the aladin lite view * fix: when adding two times the same survey, we could not change its hips options This commit also impl #191
40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<!--<link rel="stylesheet" href="./layers.css" />-->
|
|
</head>
|
|
<body>
|
|
|
|
<div id="aladin-lite-div" style="width: 1024px; height: 768px"></div>
|
|
<script>var aladin;</script>
|
|
<script type="module">
|
|
import A from '../src/js/A.js';
|
|
A.init.then(() => {
|
|
aladin = A.aladin('#aladin-lite-div', {fullScreen: true, cooFrame: "ICRSd", showSimbadPointerControl: true, showShareControl: true, showShareControl: true, survey: 'https://alasky.cds.unistra.fr/DSS/DSSColor/', fov: 180, showContextMenu: true});
|
|
// manage URL parameters
|
|
let survey1 = aladin.getBaseImageLayer();
|
|
survey1.setColormap('magma', {stretch: 'linear'});
|
|
|
|
let survey2 = aladin.newImageSurvey("CSIRO/P/RACS/low/I", {name: 'racs low'});
|
|
survey2.setColormap('rdbu', {stretch: 'linear'});
|
|
|
|
aladin.setImageLayer(survey2)
|
|
|
|
|
|
let survey3 = aladin.newImageSurvey("CSIRO/P/RACS/mid/I");
|
|
aladin.setImageLayer(survey3)
|
|
survey3.setColormap('cubehelix', {stretch: 'asinh'});
|
|
|
|
aladin.setImageLayer(survey2);
|
|
setTimeout(() => {
|
|
aladin.removeHiPSFromFavorites(survey3)
|
|
}, 5000);
|
|
|
|
|
|
aladin.addColormap('mycmap', ["lightblue", "red", "violet", "lightgreen"])
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|