This commit is contained in:
Matthieu Baumann
2024-02-28 16:05:31 +01:00
committed by Matthieu Baumann
parent 360f80c789
commit 2fe554be22
5 changed files with 69 additions and 11 deletions

View File

@@ -23,7 +23,9 @@ Image Opacity: <br/> <input id="slider" type="range" value=1 min=0 max=1 step=0.
aladin = A.aladin('#aladin-lite-div', {target: "0 0", cooFrame: "gal"});
var callback = function(ra, dec, fov) {
aladin.addCatalog(A.catalogFromSimbad( {ra: ra, dec: dec} , 1 , {shape: 'circle', color: '#5d5', onClick: 'showTable'}));
A.catalogFromSimbad( {ra: ra, dec: dec} , 1 , {shape: 'circle', color: '#5d5', onClick: 'showTable'}, (cat) => {
aladin.addCatalog(cat)
});
// we must return true, so that the default action (set view to center of image) is performed
return true;
}