mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-04-28 11:53:18 -07:00
show sources of obscore table
This commit is contained in:
@@ -573,6 +573,10 @@ A.catalogFromURL = function (url, options, successCallback, errorCallback, usePr
|
||||
const processVOTable = function (table) {
|
||||
let {sources, fields} = table;
|
||||
c.setFields(fields);
|
||||
if (fields.s_region) {
|
||||
// for ObsCore tables, show also the (ra, dec) as a source
|
||||
c.onlyFootprint = false;
|
||||
}
|
||||
c.addSources(sources);
|
||||
|
||||
const s_regionFieldFound = Array.from(Object.keys(fields)).find((f) => f.toLowerCase() === 's_region');
|
||||
|
||||
@@ -552,6 +552,7 @@ export let Catalog = (function () {
|
||||
|
||||
// Create all the variant shaped canvas
|
||||
this.cacheCanvas = {}
|
||||
this.computeFootprints(this.sources);
|
||||
|
||||
this.reportChange();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user