mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-06-12 11:01:37 -07:00
fix: More... replace the same layer instead of adding one
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user