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

+2
View File
@@ -20,6 +20,7 @@ export function createApplicationControls({
defer,
initialShareCode = null,
localePicker = true,
engineSwitch = false,
}) {
// Initialize the style manager (post-processing, HUD, locations, share links)
const styleManager = new Controls(viewer, {
@@ -40,6 +41,7 @@ export function createApplicationControls({
placeSearch,
// A share code to open at start-up instead of the page's address.
initialShareCode,
engineSwitch,
localePicker,
});
defer(() => styleManager.orbitController.stop());