mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-12-06 10:34:13 +00:00
regional sources for germany
This commit is contained in:
1 parent
12c4d3c594
commit
cc97f03e29
5 files changed
+152
-8
No files matched your search
@@ -61,12 +61,12 @@ describe('planTile', () => {
|
||||
|
||||
it('puts the countries of a border tile together, over the fallback where none is', async () => {
|
||||
const { tiles } = savedTiles();
|
||||
// Basel: France, Switzerland and Germany, which is not in the patchwork
|
||||
// Basel: France, Switzerland and Baden-Württemberg, which is not in the patchwork
|
||||
assert.deepEqual(await plan([13, 4268, 2861], tiles), {
|
||||
parts: ['CH:partial', 'FR:partial'],
|
||||
fallback: true,
|
||||
});
|
||||
// only Germany
|
||||
// only Baden-Württemberg
|
||||
assert.deepEqual(await plan([13, 4269, 2860], tiles), { parts: [], fallback: true });
|
||||
});
|
||||
|
||||
@@ -91,13 +91,27 @@ describe('planTile', () => {
|
||||
|
||||
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'],
|
||||
// Ulm, in Baden-Württemberg, and Neu-Ulm, in Bavaria
|
||||
assert.deepEqual(await plan(tile(9.99, 48.39, 13), tiles), {
|
||||
parts: ['DE-BY:partial'],
|
||||
fallback: true,
|
||||
});
|
||||
});
|
||||
|
||||
it('takes the states of Germany from their own agencies', async () => {
|
||||
const { tiles } = savedTiles();
|
||||
// Neu-Ulm
|
||||
assert.deepEqual(await plan(tile(10.01, 48.38, 16), tiles), {
|
||||
parts: ['DE-BY:full'],
|
||||
fallback: false,
|
||||
});
|
||||
// Padborg, with Schleswig-Holstein to the south
|
||||
assert.deepEqual(await plan([13, 4309, 2597], tiles), {
|
||||
parts: ['DE-SH:partial', 'DK:partial'],
|
||||
fallback: false,
|
||||
});
|
||||
});
|
||||
|
||||
it('leaves the islands of Portugal to the fallback', async () => {
|
||||
const { asked, tiles } = savedTiles();
|
||||
// Funchal, on Madeira
|
||||
|
||||
Reference in new issue
Block a user