more national imagery

This commit is contained in:
vcoppe committed 2026-11-29 22:25:45 +01:00
1 parent 9372df1c61
commit 3ac084be65
5 files changed
+60 -1

No files matched your search

@@ -82,6 +82,27 @@ describe('planTile', () => {
parts: ['BE:partial', 'NL:partial'],
fallback: false,
});
// Elvas and Badajoz, on the border of Portugal and Spain
assert.deepEqual(await plan([13, 3935, 3135], tiles), {
parts: ['ES:partial', 'PT:partial'],
fallback: false,
});
});
it('takes a country from its agency next to one without open imagery', async () => {
const { tiles } = savedTiles();
// Padborg, with Germany to the south
assert.deepEqual(await plan([13, 4309, 2597], tiles), {
parts: ['DK:partial'],
fallback: true,
});
});
it('leaves the islands of Portugal to the fallback', async () => {
const { asked, tiles } = savedTiles();
// Funchal, on Madeira
assert.deepEqual(await plan(tile(-16.91, 32.65, 15), tiles), { parts: [], fallback: true });
assert.deepEqual(asked, []);
});
it('asks for a tile of the countries once for all the tiles of imagery inside it', async () => {