chore(street-level): format; drop nearest.js from tool configs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-08 15:07:32 +04:00
1 parent affa2164e0
commit 1db3290e0b
6 files changed
+18 -13

No files matched your search

@@ -5,10 +5,7 @@ import { createCoverage, ZOOM_IN_HINT } from './coverage.js';
import { freshCoverage } from '../../state.js';
import { encodeCoverageTile } from './coverageFixture.mjs';
import { rayCamera } from '../../../../testSupport/streetLevelFakes.mjs';
import {
COVERAGE_MAX_SEQUENCES,
COVERAGE_MAX_TILES,
} from './policy.js';
import { COVERAGE_MAX_SEQUENCES, COVERAGE_MAX_TILES } from './policy.js';
import { lonToTileX, latToTileY, tileBounds } from '../../tileMath.js';
const RAD = Math.PI / 180;
@@ -473,11 +470,14 @@ test('a tile that lands with the selected sequence draws the highlight again, on
source.calls[0].resolve(bytes);
await settle();
assert.ok(state.coverage.highlight, 'highlighted once its tile is in');
assert.equal([...viewer.scene.groundPrimitives.items].at(-1), state.coverage.highlight);
assert.equal(
[...viewer.scene.groundPrimitives.items].at(-1),
state.coverage.highlight,
);
coverage.clear();
});
test('a zoom change drops the old zoom\'s lines', async () => {
test("a zoom change drops the old zoom's lines", async () => {
const { viewer, source, state, coverage, bytes } = setup();
coverage.refresh();
source.calls[0].resolve(bytes);
@@ -59,4 +59,5 @@ export function mapillaryImageUrl(imageId) {
}
/** Fields requested for a sequence's images. */
export const SEQUENCE_IMAGE_FIELDS = 'id,captured_at,compass_angle,geometry,is_pano';
export const SEQUENCE_IMAGE_FIELDS =
'id,captured_at,compass_angle,geometry,is_pano';