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]>
25 lines
622 B
JavaScript
25 lines
622 B
JavaScript
export const LAYER_ID = 'military-installations';
|
|
|
|
export const REQUEST_DEBOUNCE_MS = 180;
|
|
|
|
export const MAX_VIEWPORT_DEGREES = 10;
|
|
|
|
export const MAX_RENDERED = 700;
|
|
|
|
export const GOOGLE_MILITARY_PLACE_TYPES = new Set(['military_base']);
|
|
|
|
export const COLOR_BY_CLASS = {
|
|
airfield: '#5aa9ff',
|
|
naval_base: '#48c7d5',
|
|
range: '#d9a85d',
|
|
military_land: '#9ca6b0',
|
|
places_candidate: '#c58cff',
|
|
};
|
|
|
|
export const EARTH_MEAN_RADIUS_M = 6371008.8;
|
|
|
|
export const DISTANCE_PREFILTER_MARGIN_M = 5000;
|
|
|
|
/** A Contacts subject must move this far before its installation window moves. */
|
|
export const ANCHOR_REFRESH_M = 20_000;
|