mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-15 08:50:38 -08: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
23 lines
506 B
HTML
23 lines
506 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div id="aladin-lite-div" style="width: 1024px; height: 768px"></div>
|
|
<script type="module">
|
|
import A from '../src/js/A.js';
|
|
|
|
A.init.then(() => {
|
|
let aladin = A.aladin('#aladin-lite-div', {longitudeReversed: true, showCooGrid: true, cooFrame: 'galactic', target: '0 0', fov: 100});
|
|
//aladin.reverseLongitude(true)
|
|
|
|
setTimeout(
|
|
() => {
|
|
aladin.reverseLongitude(false)
|
|
},
|
|
5000
|
|
)
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |