mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Traffic roads come from OpenFreeMap vector tiles, or TomTom flow tiles with a key (Hybrid by default). Military areas use OpenFreeMap polygons with a bundled worldwide name index; wide views show named points. ALPR reads an hourly OpenStreetMap extract. Cockpit place context and country, state and US county outlines use bundled Natural Earth and US Census data. Overpass is used only when an operator configures their own endpoint. Also: camera arrivals no longer land below ground, keyless terrain retries on 429, bounded relation geometry for configured Overpass, one shared OpenStreetMap credit, and separate tile and API transports for embedders. Co-authored-by: theGaryLarson <[email protected]> Co-authored-by: Milan Khanal <[email protected]>
31 lines
948 B
JavaScript
31 lines
948 B
JavaScript
import { createCctvLayer } from '../../layers/cctv/index.js';
|
|
import * as credits from '../../data/dataCredits.js';
|
|
import * as sprites from '../../data/spriteOrder.js';
|
|
import * as activation from '../../cctvFocusRequest.js';
|
|
import * as overlays from '../../overlays/worldOverlay.js';
|
|
import * as locations from '../../locations.js';
|
|
import * as picking from '../../data/pickRegistry.js';
|
|
import * as focus from '../../data/focusDeemphasis.js';
|
|
import * as render from '../../renderGovernor.js';
|
|
|
|
/** Construct one layer using the application scene owners and a supplied source. */
|
|
export function createApplicationCctv({ surface, source }) {
|
|
const { terrain, groundFloor: ground, meshFloor: mesh } = surface;
|
|
return createCctvLayer({
|
|
source,
|
|
services: {
|
|
credits,
|
|
sprites,
|
|
activation,
|
|
overlays,
|
|
locations,
|
|
picking,
|
|
terrain,
|
|
ground,
|
|
mesh,
|
|
focus,
|
|
render,
|
|
},
|
|
});
|
|
}
|