uniform low zoom level imagery

This commit is contained in:
vcoppe committed 2026-11-29 13:09:26 +01:00
1 parent 2cf9a9f982
commit 5f46b08eda
2 files changed
+22 -24

No files matched your search

@@ -26,16 +26,21 @@ describe('planTile', () => {
assert.deepEqual(await plan(21.01, 52.23, 16), { parts: ['pl:full'], fallback: false });
});
it('takes every tile up to zoom 12 from the imagery of the whole world', async () => {
assert.deepEqual(await plan(2.35, 48.85, 12), { parts: [], fallback: true });
assert.deepEqual(await plan(7.589, 47.5895, 12), { parts: [], fallback: true });
});
it('takes a tile outside every country from the fallback', async () => {
assert.deepEqual(await plan(-0.12, 51.5, 14), { parts: [], fallback: true });
// Germany, which is not in the patchwork
assert.deepEqual(await plan(9.73, 52.37, 14), { parts: [], fallback: true });
assert.deepEqual(await plan(-30, 40, 10), { parts: [], fallback: true });
assert.deepEqual(await plan(-30, 40, 13), { parts: [], fallback: true });
});
it('puts the countries of a border tile together, over the fallback where none is', async () => {
// Menton: France and Italy, which is not in the patchwork
assert.deepEqual(await plan(7.5, 43.8, 12), {
assert.deepEqual(await plan(7.5, 43.78, 13), {
parts: ['fr:partial'],
fallback: true,
});
@@ -50,8 +55,4 @@ describe('planTile', () => {
fallback: false,
});
});
it('does not take a tile covering several countries from their agencies', async () => {
assert.deepEqual(await plan(2.35, 48.85, 6), { parts: [], fallback: true });
});
});