diff --git a/js/models/message_handler.js b/js/models/message_handler.js index edcc31cf..92057077 100644 --- a/js/models/message_handler.js +++ b/js/models/message_handler.js @@ -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"] || {});