fix for ipyaladin: initialize correctly aladin lite inside a div detached from the DOM

This commit is contained in:
Matthieu Baumann
2024-03-07 17:11:08 +01:00
parent 82d7276252
commit 664dcf9647
9 changed files with 256 additions and 188 deletions

View File

@@ -8,8 +8,9 @@
import A from '../src/js/A.js';
A.init.then(() => {
let aladin = A.aladin('#aladin-lite-div', {fov: 70,projection: "AIT"});
let hsc = aladin.newImageSurvey("P/HSC/DR2/deep/g", {colormap:"Purples", imgFormat: "fits"});
aladin.setBaseImageLayer(hsc);
//let hsc = aladin.newImageSurvey("P/HSC/DR2/deep/g", {colormap:"Purples", imgFormat: "fits"});
//aladin.setBaseImageLayer(hsc);
});
</script>