mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-03 00:31:03 -08:00
38 lines
1.0 KiB
HTML
38 lines
1.0 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
|
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
|
|
|
|
|
<div id="aladin-lite-div" style="width: 650px; height: 450px"></div>
|
|
<label><input type="checkbox" id="reduce" checked>Activate deformations reduction algorithm</label>
|
|
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
// Start up Aladin Lite
|
|
var aladin = A.aladin('#aladin-lite-div', {target: 'Gamma Cas', fov: 13, showReticle: false});
|
|
|
|
var overlay = A.graphicOverlay({color: 'red', lineWidth: 2});
|
|
aladin.addOverlay(overlay);
|
|
overlay.add(A.polyline([ [2.29452158, 59.14978110], [10.12683778, 56.53733116], [14.1772154, 60.7167403], [21.45396446, 60.23528403], [28.59885697, 63.67010079] ]));
|
|
|
|
$('#reduce').on('change', function() {
|
|
aladin.setReduceDeformations($(this).is(":checked"));
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|