show sources of obscore table

This commit is contained in:
Matthieu Baumann
2025-09-04 12:02:42 +02:00
parent c8604b6372
commit e6d57a137e
2 changed files with 5 additions and 0 deletions

View File

@@ -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');

View File

@@ -552,6 +552,7 @@ export let Catalog = (function () {
// Create all the variant shaped canvas
this.cacheCanvas = {}
this.computeFootprints(this.sources);
this.reportChange();
};