fix: More... replace the same layer instead of adding one

This commit is contained in:
Matthieu Baumann
2026-06-01 09:33:51 +02:00
parent 21e52325e9
commit 47c9c1359f
+2 -2
View File
@@ -973,10 +973,10 @@ export class OverlayStackBox extends Box {
aladin.hipsBrowser = new HiPSBrowserBox(aladin);
}
let newLayer = Utils.uuidv4();
let newLayer = hips.layer;
aladin.hipsBrowser._show({
selected: (hips) => {
self.aladin.setOverlayImageLayer(hips, newLayer);
},
position: { anchor: "center center" }