mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Main gained three imagery providers (Google Street View, KartaView,
Panoramax), shared line-coverage, cone and photo-viewer modules, one source
lit at a time and the translated interface. Their shared modules still
carried what this branch removes, so the merge ports them onto it:
- lineCoverage.js is this branch's coverage.js made provider-neutral
(draped lines near the ground only, the selection drawn over them, key
and rate-limit blocking); sequenceCones.js is sequences.js the same way.
Mapillary, KartaView and Panoramax all build on them; Mapillary moves
back to providers/mapillary/ beside the others.
- No ground casting, mesh sampling, surface modes, FOLLOW, legend, prewarm,
orbit overview points (Panoramax's density dots included), stale-tile
swaps or water-filled point budget come back.
- Kept from main because the new providers need them: requiresMapStack and
attachMapStackController (Street View on Google 3D only), ground clicks,
openNearest with an optional provider nearestImage, openImage {frame},
reportError, the view-cone marker (now an SVG glyph), filters /
coverageLabel / sinceBasis, OPEN STREET VIEW, keyAlternatives and i18n.
- photoViewer.js treats the viewer as expanded when its wrap is full screen
or the iPhone popover, as EXPAND now is.
- The fixture browser gate keeps its 8 steps and adds one each for
KartaView and Panoramax; catalogs, docs, boundaries and format scope
follow.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
671 B
JavaScript
19 lines
671 B
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { tilesForBbox } from './tileMath.js';
|
|
|
|
const keysOf = (tiles) => tiles.map((tile) => `${tile.x}/${tile.y}/${tile.z}`);
|
|
|
|
test('a polar view across the date line ranks 24 distinct tiles', () => {
|
|
// The halves of [-10, 60, -20, 85] share a column at z3.
|
|
const keys = keysOf(tilesForBbox([-10, 60, -20, 85], 3));
|
|
assert.equal(keys.length, 24);
|
|
assert.equal(new Set(keys).size, 24);
|
|
});
|
|
|
|
test('a limit is not spent on repeats', () => {
|
|
const keys = keysOf(tilesForBbox([-10, 60, -20, 85], 3, { limit: 16 }));
|
|
assert.equal(keys.length, 16);
|
|
assert.equal(new Set(keys).size, 16);
|
|
});
|