mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no">
|
|
</head>
|
|
<body>
|
|
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
|
|
|
<script type="module">
|
|
import A from '../src/js/A.js';
|
|
|
|
let aladin;
|
|
A.init.then(() => {
|
|
aladin = A.aladin('#aladin-lite-div', {target: "30 0", fov: 360, fullScreen: true, cooFrame: 'galactic', showCooGridControl: true, showSimbadPointerControl: true, showCooGrid: true});
|
|
aladin.setProjection('AIT');
|
|
|
|
aladin.on("zoomChanged", () => {
|
|
console.log("zoomChanged")
|
|
})
|
|
aladin.on("positionChanged", ({ra, dec}) => {
|
|
console.log('call to aladin', aladin.pix2world(300, 300))
|
|
console.log('positionChanged in icrs', ra, dec)
|
|
})
|
|
|
|
aladin.gotoRaDec(0, 20);
|
|
|
|
aladin.on('rightClickMove', (x, y) => {
|
|
console.log("right click move", x, y)
|
|
})
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|