+
+
+
+
+ Explore Gaia DR3 in Aladin Lite
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/css/aladin.css b/src/css/aladin.css
index 466942f8..be224f27 100644
--- a/src/css/aladin.css
+++ b/src/css/aladin.css
@@ -435,8 +435,16 @@ word-wrap:break-word;
border-color: #357ebd;
}
+.aladin-layer-main {
+ background-color: #ddd;
+}
+
.aladin-btn-small {
- font-size: 10px;
+ border-radius: 3px;
+ border: 1px solid transparent;
+ color: #ffffff;
+ background-color: #428bca;
+ border-color: #357ebd;
}
.aladin-button:hover {
diff --git a/src/js/Aladin.js b/src/js/Aladin.js
index 41d85382..f2ea49f5 100644
--- a/src/js/Aladin.js
+++ b/src/js/Aladin.js
@@ -482,7 +482,7 @@ export let Aladin = (function () {
});
}
- Aladin.prototype.updateSurveysDropdownList = function (surveys) {
+ /*Aladin.prototype.updateSurveysDropdownList = function (surveys) {
//console.log(surveys)
surveys = surveys.sort(function (a, b) {
if (!a.order) {
@@ -515,7 +515,7 @@ export let Aladin = (function () {
select.append($("").attr("selected", true).val(baseImgLayer.properties.id).text(baseImgLayer.properties.name));
}
}
- };
+ };*/
Aladin.prototype.setAngleRotation = function (theta) {
this.view.setAngleRotation(theta)
diff --git a/src/js/HpxImageSurvey.js b/src/js/HpxImageSurvey.js
index 4acf8402..cc732536 100644
--- a/src/js/HpxImageSurvey.js
+++ b/src/js/HpxImageSurvey.js
@@ -148,7 +148,14 @@ export let HpxImageSurvey = (function() {
};
if (this.options.imgFormat) {
+ // Img format preprocessing
+ // transform to upper case
this.options.imgFormat = this.options.imgFormat.toUpperCase();
+
+ // convert JPG -> JPEG
+ if (this.options.imgFormat === "JPG") {
+ this.options.imgFormat = "JPEG";
+ }
}
if (this.options.imgFormat === 'FITS') {
@@ -295,7 +302,7 @@ export let HpxImageSurvey = (function() {
}
this.updateMeta();
-
+
// Discard further processing if the layer has been removed
if (!this.backend.imageSurveys.get(this.layer)) {
return;
@@ -437,7 +444,6 @@ export let HpxImageSurvey = (function() {
this.options.colormap = colormap;
this.updateColor();
-
// Tell the view its meta have changed
if ( this.ready ) {
this.backend.aladin.webglAPI.setImageSurveyMeta(this.layer, this.meta);
diff --git a/src/js/View.js b/src/js/View.js
index d47c1ae9..661be7d5 100644
--- a/src/js/View.js
+++ b/src/js/View.js
@@ -1658,11 +1658,6 @@ export let View = (function() {
this.imageSurveys.set(layer, survey);
this.addImageSurvey(survey, layer);
-
- // If the base has been changed, we update the survey dropdown list
- if (layer === "base") {
- this.aladin.updateSurveysDropdownList(HpxImageSurvey.getAvailableSurveys());
- }
};
View.prototype.buildSortedImageSurveys = function() {
diff --git a/src/js/gui/HiPSLayer.js b/src/js/gui/HiPSLayer.js
index 52d50294..9738ba2b 100644
--- a/src/js/gui/HiPSLayer.js
+++ b/src/js/gui/HiPSLayer.js
@@ -40,7 +40,27 @@
this.view = view;
this.layer = layer;
- this.optionsOpenerForImageLayer = $('');
+ // HiPS header div
+ if (this.layer === "base") {
+ this.headerDiv = $(
+ '
' +
+ '' +
+ '' +
+ '' +
+ '
'
+ );
+ } else {
+ this.headerDiv = $(
+ '
' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '
'
+ );
+ }
+
+ // HiPS main options div
let cmListStr = '';
for (const cm of this.aladin.webglAPI.getAvailableColormapList()) {
cmListStr += '';
@@ -49,9 +69,7 @@
// - for FITS hipses, it is changed to grayscale
// - for JPG/PNG hipses, we do not use any colormap in the backend
cmListStr += '';
-
- this.surveySelectionDiv = $('');
- this.mainDiv = $('