Skip to content

Commit

Permalink
✨ Implement new add_hips function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed May 21, 2024
1 parent cf1c963 commit 1fc7d10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/models/message_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export default class MessageHandler {
this.aladin.gotoRaDec(msg["ra"], msg["dec"]);
}

handleAddHips(msg) {}
handleAddHips(msg) {
const options = convertOptionNamesToCamelCase(msg["options"] || {});
const hips = A.imageHiPS(msg["src"], options);
this.aladin.addNewImageLayer(hips);
}

handleAddCatalogFromURL(msg) {
const options = convertOptionNamesToCamelCase(msg["options"] || {});
Expand Down

0 comments on commit 1fc7d10

Please sign in to comment.