mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +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]>
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
import { defaultSurface } from './surfaceServices.js';
|
|
import { createApplicationInstallations } from '../app/layers/militaryInstallations.js';
|
|
import { createSourceSlot } from '../sources/sourceSlot.js';
|
|
import { createInstallationSource } from '../layers/installations/index.js';
|
|
|
|
const sourceSlot = createSourceSlot(
|
|
createInstallationSource(),
|
|
['getMappedSites', 'searchNearby'],
|
|
'Installation source',
|
|
{ destroy: () => {} },
|
|
);
|
|
export const configureInstallationSource = sourceSlot.configure;
|
|
const layer = createApplicationInstallations({
|
|
surface: defaultSurface,
|
|
source: sourceSlot.source,
|
|
});
|
|
export const approximateSurfaceDistanceM = layer.approximateSurfaceDistanceM;
|
|
export const classifyGoogleMilitaryPlace = layer.classifyGoogleMilitaryPlace;
|
|
export const installationSourceLabel = layer.installationSourceLabel;
|
|
export const installationSurfaceHeightM = layer.installationSurfaceHeightM;
|
|
export const installationWithinViewport = layer.installationWithinViewport;
|
|
export const installationResponseSaturated =
|
|
layer.installationResponseSaturated;
|
|
export const installationRetryDelayMs = layer.installationRetryDelayMs;
|
|
export default layer;
|