mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Tracking a civil flight asks Planespotters for that aircraft's photo, once per aircraft, straight from the browser. The CONTEXT panel's CONTACTS view shows it under the flight's name with the photographer's credit, as a plain link to the photo's page. Only images on plnspttrs.net and pages on www.planespotters.net are ever shown or linked. Military aircraft and a converted TR-3B are never looked up. Flight lookups (type, route, photo) whose source failed temporarily are asked again after a 60-second cool-down; an answer, found or not, and a permanent refusal stay final for the session. A route belongs to the callsign it was looked up for, so a callsign change drops the old route. Browser QA scripts that track a flight answer the photo lookup themselves, so they never call the third party.
47 lines
2.2 KiB
JavaScript
47 lines
2.2 KiB
JavaScript
import { defaultSurface } from './surfaceServices.js';
|
|
import { createApplicationFlights } from '../app/layers/flights.js';
|
|
|
|
import { createFlightSource } from '../sources/live/standalone.js';
|
|
import * as militaryRegistry from './militaryRegistry.js';
|
|
|
|
const flightsLayer = createApplicationFlights({
|
|
surface: defaultSurface,
|
|
source: createFlightSource(),
|
|
militaryRegistry,
|
|
});
|
|
export { TRACKED_MODEL_MAX_PX } from '../layers/flights/policy.js';
|
|
export const _floorGroundedDisplayPositionForTest =
|
|
flightsLayer.testing._floorGroundedDisplayPositionForTest;
|
|
export const _clearDisplayFloorStateForTest =
|
|
flightsLayer.testing._clearDisplayFloorStateForTest;
|
|
export const _setTrackedFlightRefreshStateForTest =
|
|
flightsLayer.testing._setTrackedFlightRefreshStateForTest;
|
|
export const _setFlightTrackingRefreshOutcomeForTest =
|
|
flightsLayer.testing._setFlightTrackingRefreshOutcomeForTest;
|
|
export const _addFlightTrackingCandidateForTest =
|
|
flightsLayer.testing._addFlightTrackingCandidateForTest;
|
|
export const _militaryLayerSuppressesForTest =
|
|
flightsLayer.testing._militaryLayerSuppressesForTest;
|
|
export const _armFlightTrackingRestoreForTest =
|
|
flightsLayer.testing._armFlightTrackingRestoreForTest;
|
|
export const _pendingFlightTrackingRestoreForTest =
|
|
flightsLayer.testing._pendingFlightTrackingRestoreForTest;
|
|
export const _applyPendingFlightTrackingRestoreForTest =
|
|
flightsLayer.testing._applyPendingFlightTrackingRestoreForTest;
|
|
export const _setCockpitDetectionSubjectForTest =
|
|
flightsLayer.testing._setCockpitDetectionSubjectForTest;
|
|
export const _trackedModelRegimeActiveForTest =
|
|
flightsLayer.testing._trackedModelRegimeActiveForTest;
|
|
export const _updateTrackedModelForTest =
|
|
flightsLayer.testing._updateTrackedModelForTest;
|
|
export const _trackedBillboardColorForTest =
|
|
flightsLayer.testing._trackedBillboardColorForTest;
|
|
export const _driveFleetModelHandoffForTest =
|
|
flightsLayer.testing._driveFleetModelHandoffForTest;
|
|
export const _ensureFleetModelForTest =
|
|
flightsLayer.testing._ensureFleetModelForTest;
|
|
export const _resetEnrichmentForTest =
|
|
flightsLayer.testing._resetEnrichmentForTest;
|
|
export const mapAnalystRecord = flightsLayer.mapAnalystRecord;
|
|
export default flightsLayer;
|