mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Keep globe renderers warm across live engine switches
This commit is contained in:
1 parent
f71c76c306
commit
5e658d8c9d
15 files changed
+343
-34
No files matched your search
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user