Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge origin/main into fix/issue-362-opensky-doctor

Sameh Khamisa716b059b8be
diff --cc CHANGELOG.md
index f0aa59192,c63e33945..46367a7ff
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -65,12 -255,69 +255,73 @@@ of current runtime behavior, see [`docs
- Separate submarine cable sources and rendering components, and export bundled geography lookup modules.
+ ### Added
+
+ - DISPLAY ▸ Draw: draw on the world by hand. Pick Area, Line or Pin, click the
+ vertices, double-click or press Enter to finish, label and colour it; Backspace
+ undoes a vertex, Esc cancels the shape and a second Esc leaves draw mode, and
+ Clear wipes the board. Drawn shapes go through the same annotation engine as
+ spoken ones, so they render with the whiteboard look, persist, de-dup and clear
+ together. While you are drawing, the draw tool owns the pointer and no layer
+ selects what you click through (#235 — thanks @cora-fresh-labs).
+
### Fixed
+- Make `npm run doctor` report keyless anonymous OpenSky access for explicit
+ `OPENSKY_AUTH_MODE=anon` and missing OAuth client pairs while retaining the
+ existing OAuth-pair capability wording. OpenSky proxy authentication is
+ unchanged.
+ - Bikeshare stations load again. The extracted station source addressed the
+ proxy as `/api/gbfs?url=`, but the proxy reads its upstream target from the
+ path, so every request answered 400 and the layer reported a fetch error for
+ every city (#441 — thanks @MiguelGFerreira).
+ - Overpass requests now carry a User-Agent that names the application, its
+ version and the project address, which is what the OpenStreetMap API usage
+ policy asks for; the previous string identified neither. A mirror may refuse
+ a client it cannot identify, and a refused mirror is one the fan-out has to
+ skip, so this affects every Overpass-backed layer: Mapped Installations,
+ traffic roads and annotation geometry. Mirror rotation, cooldown and cache
+ admission are unchanged (#420 — thanks @GladiatorrX9).
+ - Place search has a last resort. With no Google Maps key, and when Photon does
+ not answer, a named-place search now falls back to OpenStreetMap's Nominatim
+ through `/api/geocode`, so search and voice fly-to still work on a keyless
+ globe. The route keeps to the service's usage policy: an identifying
+ User-Agent and Referer, at most one request per second, answers cached, one
+ upstream call shared between identical searches in flight, a bounded queue so
+ a burst is refused rather than held, and a queued search dropped once its
+ caller has given up (#350 — thanks @sendmebits).
+
+ - Regional upstream reads now hold their deadline through the response body. The
+ abort timer was cleared as soon as the headers arrived, so an upstream that
+ answered and then stalled mid-body had no deadline at all. Redirect policy is
+ now stated per call rather than inherited, and the fixed Nominatim endpoints
+ refuse to be redirected.
+
+ - The location search box answers two kinds of query without a network request
+ or an API key. A decimal-degree coordinate — `43.1731, -79.0384`, or either
+ order when N/S/E/W say which is which — flies straight there; a bundled city
+ or landmark name typed exactly (`paris`, `sf`, `Golden Gate Bridge`) flies to
+ the bundled place. Anything else, including anything malformed, goes to the
+ existing geocoders unchanged. Degrees/minutes/seconds and grid references are
+ not parsed and fall through the same way (#388 — thanks @KuraPiee).
+ - A data-layer control a provider key is holding back now names that key. With
+ no FIRMS key the fire layer's control read KEY REQUIRED without saying which
+ key or where to put it; it now reads "Needs FIRMS_MAP_KEY — add it in Provider
+ Settings", on the control and in its accessible name. A layer that needs no
+ key, or already holds one, carries no such text, and an unrecognised key name
+ produces none rather than a guess (#296 — thanks @Matthew-Selvam).
+
+ - Draped annotation geometry — area fills and outlines, routes and arrows —
+ classifies onto terrain as well as 3D tiles. On a keyless boot, where Cesium's
+ own globe carries the imagery, marks previously rendered their labels and no
+ geometry at all. This affected spoken annotations as much as hand-drawn ones.
+
+ - A finished drawn area closes its ring, so its outline no longer misses the
+ edge back to the first vertex.
+
+ - Areas measured and anchored across the antimeridian use unwrapped longitudes:
+ a shape straddling 180° reported an area thousands of times too large and
+ placed its label on the opposite side of the world.
- Traffic now retries a failed destination after city navigation without a layer
toggle. Camera departure cancels pending work, arrival checks the final view,
diff --cc scripts/setup-doctor.mjs
index a9169839c,51b78be7d..6941bf4c3
--- a/scripts/setup-doctor.mjs
+++ b/scripts/setup-doctor.mjs
@@@ -4,11 -4,10 +4,12 @@@ import { spawnSync } from 'node:child_p
import path from 'node:path';
import { parseEnv } from 'node:util';
import { fileURLToPath } from 'node:url';
+ import { projectRoot } from './project-root.mjs';
import { selectMapStartupRoute } from '../src/mapStartup.js';
- const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+ const ROOT = projectRoot(import.meta.url);
+const OPENSKY_AUTH_MODE_DEFAULT = 'oauth';
+const OPENSKY_AUTH_MODES = new Set(['basic', 'oauth', 'auto', 'anon']);
export const CREDENTIALS = Object.freeze([
{ name: 'GOOGLE_MAPS_API_KEY', label: 'Google Maps', keychain: [['google-maps-api', 'api-key'], ['google-maps-api', 'default'], ['google-maps-api', 'key']] },
@@@ -194,9 -173,7 +195,9 @@@ export function inspectSetup({ includeK
: { available: false, version: null },
dependenciesInstalled,
credentials,
- capabilities: buildCapabilitySummary(credentials),
+ capabilities: buildCapabilitySummary(credentials, {
- openSkyAuthMode: resolveOpenSkyAuthMode({ authoritativeEnvironment }),
++ openSkyAuthMode: resolveOpenSkyAuthMode({ authoritativeEnvironment, rootDir }),
+ }),
};
}