mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Carry the Nepal event images, playback and media across globes
This commit is contained in:
1 parent
811bcaff85
commit
4e09559337
19 files changed
+426
-84
No files matched your search
+17
-16
@@ -41,22 +41,6 @@ export function createApplicationTools({
|
||||
const { viewer, engine, tileset, mapStackController, operations } = scene;
|
||||
const { styleManager, weatherEffects, cockpitCloudEffects } = controls;
|
||||
const { dataManager } = data;
|
||||
// Without a viewer (the Navara mode) the tools load with that mode's code.
|
||||
if (!viewer) {
|
||||
return import('./navaraMode.js').then(({ createViewerlessTools }) =>
|
||||
createViewerlessTools({
|
||||
scene,
|
||||
controls,
|
||||
data,
|
||||
loadingScreen,
|
||||
placeSearch,
|
||||
voice,
|
||||
startChrome,
|
||||
signal,
|
||||
defer,
|
||||
}),
|
||||
);
|
||||
}
|
||||
const sceneDirector = new SceneDirector(viewer, styleManager, dataManager, {
|
||||
engine,
|
||||
dataPacks: sceneDataPacks,
|
||||
@@ -68,6 +52,23 @@ export function createApplicationTools({
|
||||
?.module.attachSceneController(sceneDirector);
|
||||
defer(() => sceneDirector.destroy());
|
||||
onSceneDirector?.(sceneDirector);
|
||||
// Without a viewer (the Navara mode) the tools load with that mode's code.
|
||||
if (!viewer) {
|
||||
return import('./navaraMode.js').then(({ createViewerlessTools }) =>
|
||||
createViewerlessTools({
|
||||
scene,
|
||||
controls,
|
||||
data,
|
||||
loadingScreen,
|
||||
placeSearch,
|
||||
voice,
|
||||
sceneDirector,
|
||||
startChrome,
|
||||
signal,
|
||||
defer,
|
||||
}),
|
||||
);
|
||||
}
|
||||
const annotations = initAnnotations({
|
||||
viewer,
|
||||
tileset,
|
||||
|
||||
Reference in new issue
Block a user