Keep globe renderers warm across live engine switches

This commit is contained in:
German Khokhlov committed 2026-11-02 13:45:23 +04:00
1 parent f71c76c306
commit 5e658d8c9d
15 files changed
+343 -34

No files matched your search

+3 -3
View File
@@ -177,7 +177,7 @@ export async function registerNavaraLayerRenderers() {
* credits in its own attribution UI.
*/
export async function createNavaraScene({
operations,
container = document.getElementById('cesiumContainer'),
cesiumToken,
credits,
MapController,
@@ -191,7 +191,7 @@ export async function createNavaraScene({
const createNavaraGlobe = await loadNavaraGlobe();
signal.throwIfAborted();
const globe = await createNavaraGlobe({
container: document.getElementById('cesiumContainer'),
container,
// The cinematic look unless `?look=photoreal|minimal` asks otherwise.
search: globalThis.location?.search ?? '',
});
@@ -241,8 +241,8 @@ export async function createNavaraScene({
viewer: null,
engine,
tileset: null,
setRenderLoop: globe.setRenderLoop,
mapStackController,
operations,
};
}