fix: retain source credits and live vessel compatibility
This commit is contained in:
parent
58aef7d617
commit
0d741449e2
|
|
@ -55,7 +55,9 @@ const _scratchFocusScreen = new Cesium.Cartesian2();
|
|||
const DEFAULT_API_URL = '/api/ais-live';
|
||||
const DEFAULT_RENDER_ROWS = 12000;
|
||||
const DEFAULT_ACTIVE_LABELS = 900;
|
||||
const REFRESH_MS = 60000;
|
||||
// The local server already receives a live WebSocket stream; poll its cached
|
||||
// snapshot every 10 seconds instead of adding a full minute of client delay.
|
||||
const REFRESH_MS = 10000;
|
||||
/** Bounded wait for the first accepted vessel position in one enabled session. */
|
||||
export const AIS_FIRST_CONNECT_GRACE_MS = 30000;
|
||||
const AIS_FIRST_CONNECT_LABEL = 'awaiting first AIS position…';
|
||||
|
|
|
|||
|
|
@ -120,6 +120,12 @@ export const DATA_CREDITS = [
|
|||
'CCTV cameras & frames (California): Caltrans — ' +
|
||||
'<a href="https://cwwp2.dot.ca.gov/" target="_blank" rel="noopener">cwwp2.dot.ca.gov</a>',
|
||||
},
|
||||
{ key: 'live-views-gdacs', html: 'Hazard reports: <a href="https://www.gdacs.org/" target="_blank" rel="noopener">GDACS</a>.' },
|
||||
{ key: 'live-views-mbta', html: 'Boston transit positions: <a href="https://api-v3.mbta.com/" target="_blank" rel="noopener">MBTA V3 API</a>.' },
|
||||
{
|
||||
key: 'wsdot-cctv',
|
||||
html: 'Washington traffic cameras: <a href="https://data.wsdot.wa.gov/" target="_blank" rel="noopener">Washington State Department of Transportation</a> and credited camera owners.',
|
||||
},
|
||||
{
|
||||
key: 'tfl-cctv',
|
||||
html:
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import {
|
|||
resolveOverpassPreflight,
|
||||
} from '../../vite.config.js';
|
||||
|
||||
|
||||
test('preflight checks memory, in-flight, then disk before consuming limiter quota', async () => {
|
||||
const key = 'normalized query';
|
||||
const fresh = { id: 'memory', status: 200, cachedAt: 900 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue