File tree Expand file tree Collapse file tree
apps/notebook/components/src/app/components/map Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { TileLayer } from '@deck.gl/geo-layers';
1212import { BitmapLayer } from '@deck.gl/layers' ;
1313import { IDLNotebookMap } from '@idl/types/notebooks' ;
1414import copy from 'fast-copy' ;
15+ import { firstValueFrom } from 'rxjs' ;
1516
1617import { VSCodeRendererMessenger } from '../../services/vscode-renderer-messenger.service' ;
1718import { BaseRendererComponent } from '../base-renderer.component' ;
@@ -200,12 +201,12 @@ export class MapComponent
200201
201202 fetch : async ( url ) => {
202203 // get value as bloc
203- const val = await this . http
204- . get ( url , {
204+ const val = await firstValueFrom (
205+ this . http . get ( url , {
205206 withCredentials : false ,
206207 responseType : 'blob' ,
207208 } )
208- . toPromise ( ) ;
209+ ) ;
209210
210211 // convert to data URI and display
211212 return URL . createObjectURL ( val ) ;
You can’t perform that action at this time.
0 commit comments