feat(radio): render stations and clusters on Navara

Preserve native clustering, selection and direct-action playback through renderer ports. Record both-engine dev/preview, legacy, contract, shell and build evidence with remaining W2 limits.
This commit is contained in:
German Khokhlov committed 2026-10-28 14:49:18 +04:00
1 parent d82a6f1550
commit 9d587c1d37
27 files changed
+1490 -350

No files matched your search

+11 -1
View File
@@ -1,14 +1,24 @@
import { createRadioCesiumRenderer } from '../../layers/radio/render/cesium.js';
import { createRadioLayer } from '../../layers/radio/index.js';
import { rendererFor } from './renderers.js';
import * as picking from '../../data/pickRegistry.js';
import * as overlays from '../../overlays/worldOverlay.js';
import * as globe from '../../celestialRing.js';
import * as render from '../../renderGovernor.js';
/** Construct one layer using the application scene owners and a supplied source. */
export function createApplicationRadio({ surface, source }) {
export function createApplicationRadio({
surface,
source,
rendererFactory = ({ engine, ...context }) =>
engine?.kind === 'navara'
? rendererFor('radio', engine, context)
: createRadioCesiumRenderer(context),
}) {
const { groundFloor: ground } = surface;
return createRadioLayer({
source,
rendererFactory,
services: { ground, picking, overlays, globe, render },
});
}
+2
View File
@@ -28,6 +28,7 @@ test('the Navara mode registers migrated renderers once', async () => {
'local-firms',
'military-installations',
'bikeshare',
'radio',
])
assert.equal(layerAvailableOn(id, 'navara'), true, id);
assert.deepEqual(
@@ -41,6 +42,7 @@ test('the Navara mode registers migrated renderers once', async () => {
'earthquakes',
'satellites',
'rocket-launches',
'radio',
'bikeshare',
'ais-live-vessels',
'military-installations',
+7 -1
View File
@@ -54,6 +54,9 @@ const NAVARA_CREDIT_KEYS = new Set([
'launch-library-2',
'usgs',
'firms',
'gbfs',
'overture-military-names',
'radio-browser',
]);
/**
@@ -62,6 +65,9 @@ const NAVARA_CREDIT_KEYS = new Set([
*/
export async function registerNavaraLayerRenderers() {
const loaders = {
radio: async () =>
(await import('../layers/radio/render/navara.js'))
.createRadioNavaraRenderer,
bikeshare: async () =>
(await import('../layers/bikeshare/render/navara.js'))
.createBikeshareNavaraRenderer,
@@ -274,7 +280,7 @@ export function createViewerlessTools({
if (window.__godsEyeView === debug) delete window.__godsEyeView;
});
// Voice on the engine (phase 3, Task 9): the W1 tools drive the engine;
// the viewer-only ones (director, annotations, cockpit, radio…) refuse.
// the viewer-only ones (director, annotations, cockpit…) refuse.
const voiceCommands = initGevVoiceCommands({
...voice,
annotationResolver: operations.annotationResolver,
+4 -1
View File
@@ -182,12 +182,15 @@ test('Navara keeps attribution for every available W1/W2 source and excludes una
'launch-library-2',
'usgs',
'firms',
'gbfs',
'overture-military-names',
'radio-browser',
'photon-geocoder',
'openstreetmap',
'reearth-terrain',
];
const run = await startScene({
credits: [...keys, 'radio-browser'].map((key) => ({
credits: [...keys, 'nasa-gibs'].map((key) => ({
key,
html: `Credit ${key}`,
})),