diff --git a/src/atlasViewer/atlasViewer.component.ts b/src/atlasViewer/atlasViewer.component.ts index 6271e58a57001f0b65cc9a471041c0aca0b8370c..b5800545b227d2969bf6707ce26546040e1f323c 100644 --- a/src/atlasViewer/atlasViewer.component.ts +++ b/src/atlasViewer/atlasViewer.component.ts @@ -401,12 +401,14 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit { ngLayersChangeHandler(){ - this.ngLayers = (window['viewer'].layerManager.managedLayers as any[]).map(obj => ({ - name : obj.name, - type : obj.initialSpecification.type, - source : obj.sourceUrl, - visible : obj.visible - }) as NgLayerInterface) + this.ngLayers = (window['viewer'].layerManager.managedLayers as any[]) + .filter(obj => obj.sourceUrl && /precomputed|nifti/.test(obj.sourceUrl)) + .map(obj => ({ + name : obj.name, + type : obj.initialSpecification.type, + source : obj.sourceUrl, + visible : obj.visible + }) as NgLayerInterface) } rafId : number | null