mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
refactor: own application request operations and surface caches
This commit is contained in:
1 parent
310809e8f1
commit
ac977bd8bc
53 files changed
+4388
-3317
No files matched your search
@@ -25,19 +25,23 @@ export function createStandaloneApplication({
|
||||
let placeSearch;
|
||||
let catalog;
|
||||
return createApplication({
|
||||
createScene: (context) => {
|
||||
catalog = createStandaloneCatalog({ signal: context.signal });
|
||||
createScene: async (context) => {
|
||||
placeSearch = createStandalonePlaceSearch({
|
||||
...geospatial,
|
||||
resolveApiKey: () => googleApiKey,
|
||||
signal: context.signal,
|
||||
});
|
||||
return createStandaloneScene({
|
||||
const scene = await createStandaloneScene({
|
||||
...context,
|
||||
googleApiKey,
|
||||
cesiumToken,
|
||||
loaderStatus,
|
||||
});
|
||||
catalog = createStandaloneCatalog({
|
||||
signal: context.signal,
|
||||
surface: scene.operations.surface,
|
||||
});
|
||||
return scene;
|
||||
},
|
||||
createControls: (context) =>
|
||||
createStandaloneControls({
|
||||
|
||||
Reference in new issue
Block a user