From 2b66c46a302c6d61497d78beab750a48495371df Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Fri, 6 Nov 2026 20:06:06 -0800 Subject: [PATCH] Show or hide the app's starting globe through the renderer's globe port At start-up the app now sets the globe's visibility through its bound renderer's globe port rather than on the Cesium scene. The map controller keeps writing the scene: it is a public entry, and on a caller's own viewer the port would be one built just for it, whose listeners outlive the controller. --- src/app/scene.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/scene.js b/src/app/scene.js index f50c543ae..852518cb1 100644 --- a/src/app/scene.js +++ b/src/app/scene.js @@ -112,7 +112,7 @@ export async function createApplicationScene({ viewer.scene.primitives.add(tileset); // NOTE: Cesium World Terrain intentionally disabled — conflicts with Google 3D Tiles at high zoom. // Google Photorealistic 3D Tiles provide their own terrain/elevation. - viewer.scene.globe.show = false; + renderer.globe.setGlobeVisible(false); console.info(`[Init] Google 3D Tiles loaded via ${photoreal.route}.`); } else { if (photoreal.errors.length) { @@ -129,7 +129,7 @@ export async function createApplicationScene({ }, ); } - viewer.scene.globe.show = true; + renderer.globe.setGlobeVisible(true); } loaderStatus.textContent = t('Initializing systems...');