mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-17 07:23:45 -08:00
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
|
||||
// Start up Aladin Lite
|
||||
var aladin = A.aladin('#aladin-lite-div');
|
||||
aladin.setFoV(90.0);
|
||||
aladin.setProjection("aitoff");
|
||||
aladin.setFoV(360.0);
|
||||
|
||||
|
||||
|
||||
|
||||
37
bug-tracking/test-gotoObject.html
Normal file
37
bug-tracking/test-gotoObject.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!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: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
var aladin = A.aladin('#aladin-lite-div', {target: 'M51', fov: 0.3, survey: 'P/DSS2/red'});
|
||||
|
||||
// 1. previous method signature should still work
|
||||
//aladin.gotoObject('unknown', function() {alert('object not known by AL');});
|
||||
|
||||
// 2. calling without callbackOptions param should work
|
||||
aladin.gotoObject('M1');
|
||||
|
||||
// 3. calling with a success callback
|
||||
aladin.gotoObject('M51', {success: function(pos) {console.log('position', pos);},
|
||||
error: function() {console.log('pas connu');}});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user