mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Merge origin/main into the renderer-contract branch: the procedural fleet models drawn through the renderer's model sets
Aircraft, military, local ADS-B, vessel, transit and rail models come from the fleet model set, loaded up front and drawn life size through the draw port's models sets; no layer touches the viewer or Cesium outside src/render/cesium/. The models capability gains glTF bytes (gltf), a per-axis stretch (axisScale), a colour for tinted parts (maskColor) and a cut below the origin (clip: 'belowOrigin'), with conformance checks. Main's rail layer and Data Library are ported to the ports; the CCTV footprint probe keeps the globe-terrain clamp through the query port.
This commit is contained in:
commit
e3865f462f
533 files changed
+55738
-2518
No files matched your search
@@ -6,13 +6,11 @@ import { createStandaloneScene, loadDefaultRenderer } from './scene.js';
|
||||
import { createStandaloneControls } from './controls.js';
|
||||
import { createStandaloneData } from './data.js';
|
||||
import { createStandaloneTools } from './tools.js';
|
||||
import { resolveLocale, applyDocumentLanguage } from '../i18n/locale.js';
|
||||
import {
|
||||
applyDocumentTranslations,
|
||||
getLocale,
|
||||
onLocaleChange,
|
||||
setLocale,
|
||||
} from '../i18n/index.js';
|
||||
followPageLocale,
|
||||
startPageLocale,
|
||||
} from '../i18n/page.js';
|
||||
import { mountApplicationViews } from '../ui/views/index.js';
|
||||
import { createGoogleTokenSource } from '../maps/googleTokens.js';
|
||||
|
||||
@@ -45,9 +43,7 @@ export function createStandaloneApplication({
|
||||
// scripts execute after parsing, so the DOM is ready here: the views
|
||||
// translate as they render, and the page's static data-i18n* markup (the
|
||||
// loading screen) is translated here and after every language switch.
|
||||
const activeLocale = resolveLocale();
|
||||
setLocale(activeLocale);
|
||||
applyDocumentLanguage(document, activeLocale);
|
||||
startPageLocale(document);
|
||||
// Views render the page's markup; wiring reads it.
|
||||
mountApplicationViews(document);
|
||||
applyDocumentTranslations(document);
|
||||
@@ -58,12 +54,7 @@ export function createStandaloneApplication({
|
||||
return createApplication({
|
||||
createScene: async (context) => {
|
||||
// A language switch applies in place; the page's own markup follows.
|
||||
context.defer(
|
||||
onLocaleChange(() => {
|
||||
applyDocumentLanguage(document, getLocale());
|
||||
applyDocumentTranslations(document);
|
||||
}),
|
||||
);
|
||||
context.defer(followPageLocale(document));
|
||||
placeSearch = createStandalonePlaceSearch({
|
||||
// The bundled city and landmark data the offline name provider reads.
|
||||
// The search package takes it as plain data rather than importing it,
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
import { createCctvSource } from '../layers/cctv/source.js';
|
||||
import { createRadioSource } from '../layers/radio/source.js';
|
||||
import { createTransitSource } from '../layers/transit/source.js';
|
||||
import { createRailSource } from '../layers/rail/source.js';
|
||||
import { createTrafficSource } from '../layers/traffic/source.js';
|
||||
import { createBikeshareSource } from '../layers/bikeshare/source.js';
|
||||
import { createInstallationSource } from '../layers/installations/source.js';
|
||||
@@ -55,6 +56,7 @@ export function createStandaloneLayerSources(
|
||||
radio: createRadioSource(),
|
||||
traffic: createTrafficSource({ mapTiles: trafficTiles }),
|
||||
transit: createTransitSource(),
|
||||
rail: createRailSource(),
|
||||
bikeshare: createBikeshareSource(),
|
||||
installations: createInstallationSource({ mapTiles: installationTiles }),
|
||||
satellites: createSatelliteSource(),
|
||||
|
||||
Reference in new issue
Block a user