feat: v0.2.7 — drop small_airport rows; map shows the 1045 bigger airports

This commit is contained in:
2026-09-16 23:40:14 +00:00
parent fbf583fddd
commit 3c8d9c9b53
4 changed files with 1060 additions and 7453 deletions
+8 -6
View File
@@ -42,12 +42,14 @@ test('clicking an airport marker opens a popup with name and ICAO', async ({ pag
{ timeout: 15_000 },
).toBeGreaterThan(0);
// Project EKRN (Bornholm) to screen space via the dev hook, then click it.
// Bornholm is used because its nearest other airport is ~0.8° away (~19 px at the
// initial zoom), so its marker cannot be overlapped by a neighbouring circle.
// Project ESSV (Visby) to screen space via the dev hook, then click it.
// Visby (Gotland) is used because its nearest remaining airport after the
// small_airport rows were dropped is Stockholm Skavsta across the Baltic Sea,
// ~59 px away at the initial zoom, so its marker cannot be overlapped by a
// neighbouring circle.
const pt = await page.evaluate(() => {
const map = (window as any).__flightMap;
const p = map.project([14.7596, 55.063301]);
const p = map.project([18.346201, 57.6628]);
const rect = map.getContainer().getBoundingClientRect();
return { x: rect.left + p.x, y: rect.top + p.y };
});
@@ -55,8 +57,8 @@ test('clicking an airport marker opens a popup with name and ICAO', async ({ pag
const popup = page.getByTestId('airport-popup');
await expect(popup).toBeVisible();
await expect(popup).toContainText('Bornholm Airport');
await expect(popup).toContainText('EKRN');
await expect(popup).toContainText('Visby Airport');
await expect(popup).toContainText('ESSV');
});
test('wheel zoom is clamped between min and max zoom', async ({ page }) => {