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

+4
View File
@@ -41,6 +41,8 @@ export function createStandaloneApplication({
streetLevelProviders,
allowQaRegistration = false,
engineKind = pageEngineKind(),
rendererCache,
engineSwitch = false,
}) {
if (owner)
throw new Error('The standalone application already owns this page');
@@ -86,6 +88,7 @@ export function createStandaloneApplication({
cesiumToken,
loaderStatus,
engineKind,
rendererCache,
});
// The catalog of this engine: on Navara only the layers with a Navara
// renderer (src/app/layers/renderers.js; none yet), the others' state
@@ -123,6 +126,7 @@ export function createStandaloneApplication({
createControls: (context) =>
createStandaloneControls({
...context,
engineSwitch,
loaderStatus,
placeSearch,
catalog,