mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-06-12 19:11:42 -07:00
Include hips_data_range in HiPS property parser
This commit is contained in:
committed by
Matthieu Baumann
parent
9392eddc36
commit
9afb07daa9
@@ -121,6 +121,18 @@ PropertyParser.hipsDataMinmax = function (properties) {
|
||||
return [minData, maxData];
|
||||
};
|
||||
|
||||
PropertyParser.dataRange = function (properties) {
|
||||
let range =
|
||||
properties &&
|
||||
properties.hips_data_range &&
|
||||
properties.hips_data_range.split(" ");
|
||||
|
||||
const minRange = range && parseFloat(range[0]);
|
||||
const maxRange = range && parseFloat(range[1]);
|
||||
|
||||
return [minRange, maxRange];
|
||||
};
|
||||
|
||||
PropertyParser.cutouts = function (properties) {
|
||||
let cuts =
|
||||
properties &&
|
||||
@@ -547,6 +559,8 @@ export let HiPS = (function () {
|
||||
|
||||
self.dataMinMax = PropertyParser.hipsDataMinmax(properties);
|
||||
|
||||
self.dataRange = PropertyParser.dataRange(properties);
|
||||
|
||||
// HiPS3D special keywords
|
||||
self.orderFreq = (properties && properties.hips_order_freq && +properties.hips_order_freq) || self.orderFreq;
|
||||
self.tileDepth = (properties && properties.hips_tile_depth && +properties.hips_tile_depth) || self.tileDepth;
|
||||
|
||||
Reference in New Issue
Block a user