mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Keep GhostMaps KMZ editions and selections across native globe renderers
This commit is contained in:
1 parent
87bbe14748
commit
11992828fb
14 files changed
+709
-161
No files matched your search
@@ -207,7 +207,7 @@ export function createApplicationCatalog({
|
||||
],
|
||||
[
|
||||
's2-ghostmaps',
|
||||
() => createApplicationGhostMaps({ source: sources['s2-ghostmaps'] }),
|
||||
() => sessionModel('s2-ghostmaps', () => createApplicationGhostMaps({ source: sources['s2-ghostmaps'] })),
|
||||
],
|
||||
[
|
||||
'alpr-cameras',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as Cesium from 'cesium';
|
||||
import { rendererFor } from './renderers.js';
|
||||
import { createGhostMapsLayer } from '../../layers/ghostMaps/index.js';
|
||||
import * as picking from '../../data/pickRegistry.js';
|
||||
import * as overlays from '../../overlays/worldOverlay.js';
|
||||
@@ -18,6 +19,7 @@ export function createApplicationGhostMaps(options) {
|
||||
new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas),
|
||||
picking,
|
||||
pointer: { isPointerFree },
|
||||
createRenderer: (engine) => rendererFor('s2-ghostmaps', engine),
|
||||
...options,
|
||||
});
|
||||
}
|
||||
@@ -50,6 +50,7 @@ test('the Navara mode registers migrated renderers once', async () => {
|
||||
'air-quality',
|
||||
'fire-perimeters',
|
||||
'gnss-integrity',
|
||||
's2-ghostmaps',
|
||||
'alpr-cameras',
|
||||
'satellites',
|
||||
'rocket-launches',
|
||||
|
||||
@@ -58,6 +58,7 @@ const NAVARA_CREDIT_KEYS = new Set([
|
||||
'usgs',
|
||||
'eccc-aqhi',
|
||||
'wfigs',
|
||||
's2-ghostmaps',
|
||||
'firms',
|
||||
'gbfs',
|
||||
'overture-military-names',
|
||||
@@ -106,6 +107,10 @@ export async function registerNavaraLayerRenderers() {
|
||||
bikeshare: async () =>
|
||||
(await import('../layers/bikeshare/render/navara.js'))
|
||||
.createBikeshareNavaraRenderer,
|
||||
's2-ghostmaps': async () => {
|
||||
const { createGhostMapsNavaraRenderer } = await import('../layers/ghostMaps/render/navara.js');
|
||||
return (engine) => createGhostMapsNavaraRenderer(engine, navaraViews.get(engine).view);
|
||||
},
|
||||
'military-awareness': async () =>
|
||||
(await import('../layers/awareness/render/navara.js')).createAwarenessNavaraRenderer,
|
||||
'military-installations': async () => {
|
||||
|
||||
Reference in new issue
Block a user