Skip to content

Commit

Permalink
📝 Add comment line for initialization gotoRaDec function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Apr 25, 2024
1 parent d604ae6 commit 6fbf34d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function initAladinLite(model, el) {
let aladin = new A.aladin(aladinDiv, initOptions);
idxView += 1;

// Set the target again after the initialization to be sure that the target is set from icrs coordinates because of the use of gotoObject in the Aladin Lite API
const raDec = initOptions["target"].split(" ");
aladin.gotoRaDec(raDec[0], raDec[1]);

Expand Down

0 comments on commit 6fbf34d

Please sign in to comment.