@@ -277,6 +277,11 @@ export const landscape_ist = async (
277277 const imgage_name_for_dim = 'dapi' ;
278278
279279 await set_landscape_parameters ( viz_state . img , base_url , viz_state . aws ) ;
280+ const tech = viz_state . img . landscape_parameters . technology ;
281+ if ( tech === 'Chromium' ) {
282+ viz_state . obs_store . viz_image_layers . set ( false ) ;
283+ viz_state . obs_store . viz_background_layer . set ( false ) ;
284+ }
280285
281286 const tmp_image_info = viz_state . img . landscape_parameters . image_info ;
282287
@@ -299,7 +304,11 @@ export const landscape_ist = async (
299304 root . style . height = `${ height } px` ;
300305 root . style . border = '1px solid #d3d3d3' ;
301306
302- await set_dimensions ( viz_state , base_url , imgage_name_for_dim ) ;
307+ if ( tech === 'Chromium' ) {
308+ viz_state . dimensions = { width : 1 , height : 1 , tileSize : 1 } ;
309+ } else {
310+ await set_dimensions ( viz_state , base_url , imgage_name_for_dim ) ;
311+ }
303312
304313 await set_meta_gene (
305314 viz_state . genes ,
@@ -501,6 +510,8 @@ export const landscape_ist = async (
501510 el . appendChild ( ui_container ) ;
502511 el . appendChild ( root ) ;
503512
513+ const isChromium =
514+ viz_state . img . landscape_parameters . technology === 'Chromium' ;
504515 viz_state . obs_store . landscape_view . subscribe (
505516 ( view ) => {
506517 const isUmap = view === 'umap' ;
@@ -510,8 +521,10 @@ export const landscape_ist = async (
510521
511522 if ( isUmap ) {
512523 viz_state . buttons . buttons . umap . style ( 'color' , 'blue' ) ;
513- viz_state . buttons . buttons . spatial . style ( 'color' , 'gray' ) ;
514- viz_state . buttons . buttons . img . style ( 'color' , 'gray' ) ;
524+ if ( ! isChromium ) {
525+ viz_state . buttons . buttons . spatial . style ( 'color' , 'gray' ) ;
526+ viz_state . buttons . buttons . img . style ( 'color' , 'gray' ) ;
527+ }
515528
516529 viz_state . obs_store . viz_background_layer . set ( false ) ;
517530 viz_state . obs_store . viz_image_layers . set ( false ) ;
@@ -535,9 +548,11 @@ export const landscape_ist = async (
535548 trx_layer : true ,
536549 } ) ;
537550 } else {
538- viz_state . buttons . buttons . umap . style ( 'color' , 'gray' ) ;
539- viz_state . buttons . buttons . spatial . style ( 'color' , 'blue' ) ;
540- viz_state . buttons . buttons . img . style ( 'color' , 'blue' ) ;
551+ if ( ! isChromium ) {
552+ viz_state . buttons . buttons . umap . style ( 'color' , 'gray' ) ;
553+ viz_state . buttons . buttons . spatial . style ( 'color' , 'blue' ) ;
554+ viz_state . buttons . buttons . img . style ( 'color' , 'blue' ) ;
555+ }
541556
542557 toggle_trx_layer_visibility ( layers_obj , true ) ;
543558 toggle_path_layer_visibility ( layers_obj , true ) ;
0 commit comments