mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Knip, configured with the application, package exports, scripts, QA harnesses, workers, tools and tests as entry points, reports exports that no module imports. Each was checked by hand against string-based and namespace imports. - Symbols that are still used inside their own module lose only the `export` keyword (176 constants and helpers). - Unused re-exports are removed from barrel modules (flight, military, vessel, CCTV, directions, transit history, local ADS-B and street-level policy modules). - Declarations that nothing uses at all are deleted, among them AIS_WATCHDOG_STATUSES, applyFilter, isRadioCountryCode, compactText, DENSITY_STOPS, the unused CCTV endpoint constants, and the SDR band constants. - Default exports that nothing imports are removed. The ones in src/data/earthquakes.js, src/data/telegeographySubmarineCables.js, src/data/wind.js and src/data/bhoteKoshiLocator.js each constructed a layer instance at import time that nothing used; those instances are no longer created. Every export of a package.json entry stays, as does TOMTOM_CREDIT, which the traffic layer reads from the credits namespace it is given.
23 lines
581 B
JavaScript
23 lines
581 B
JavaScript
export const LAYER_ID = 'military-installations';
|
|
|
|
export const REQUEST_DEBOUNCE_MS = 180;
|
|
|
|
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;
|