mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-16 06:53:24 -08:00
restore zooming out feature
This commit is contained in:
committed by
bmatthieu3
parent
278bba0cb3
commit
9b098fdcdd
@@ -229,12 +229,10 @@ export let DefaultActionsForContextMenu = (function () {
|
||||
},
|
||||
{
|
||||
label: "HiPS2FITS cutout", action(o) {
|
||||
let hips2fitsUrl = 'https://alasky.cds.unistra.fr/hips-image-services/hips2fits#';
|
||||
let radec = a.getRaDec();
|
||||
let fov = Math.max.apply(null, a.getFov());
|
||||
let hips2fitsUrl = 'https://alasky.cds.unistra.fr/hips-image-services/hips2fits?';
|
||||
let hipsId = a.getBaseImageLayer().id;
|
||||
let proj = a.getProjectionName();
|
||||
hips2fitsUrl += 'ra=' + radec[0] + '&dec=' + radec[1] + '&fov=' + fov + '&projection=' + proj + '&hips=' + encodeURIComponent(hipsId);
|
||||
let wcs = JSON.stringify(a.getViewWCS());
|
||||
hips2fitsUrl += 'wcs=' + encodeURIComponent(wcs) + '&hips=' + encodeURIComponent(hipsId);
|
||||
window.open(hips2fitsUrl, '_blank');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user