Skip to content

Commit 52698ee

Browse files
committed
2025.2: cleaned up fix
1 parent 77d0299 commit 52698ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/firefly/js/drawingLayers/hpx/TileDataMaker.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,14 @@ function addTo(ary,addAry) {
217217
}
218218

219219
function hasCoverageTables(centerWp, fov, plot) {
220-
const cells = getAllVisibleHiPSCells(MIN_NORDER_FOR_COVERAGE+2, centerWp, fov, CoordSys.EQ_J2000, isHiPSAitoff(plot));
220+
const norder= fov > 4 ? MIN_NORDER_FOR_COVERAGE : MIN_NORDER_FOR_COVERAGE+2;
221+
const cells = getAllVisibleHiPSCells(norder, centerWp, fov, CoordSys.EQ_J2000, isHiPSAitoff(plot));
221222
if (!cells?.length) return 0;
222223
const ipixAry = cells.map(({ipix}) => ipix);
223224
return Object.entries(idxRoot())
224225
.filter(([, idxData]) => idxData.ready)
225226
.filter(([, idxData]) =>
226-
getKeysForOrder(idxData.orderData,MIN_NORDER_FOR_COVERAGE+2).some((ipix) => ipixAry.includes(ipix)))
227+
getKeysForOrder(idxData.orderData,norder).some((ipix) => ipixAry.includes(ipix)))
227228
.map(([tbl_id]) => tbl_id);
228229
}
229230

0 commit comments

Comments
 (0)