Give Local ADS-B the selectById hook the other selectable layers expose

It takes the ICAO a position row carries, in any case, or the marker id, and selects through the same path as a click; selectAircraft now delegates to it.
This commit is contained in:
German Khokhlov committed 2026-11-03 20:36:10 +04:00
1 parent 60a230b2ff
commit dea10cac4f
3 files changed
+60 -9

No files matched your search

+6 -1
View File
@@ -97,7 +97,12 @@ await strict.run({ args: ['--use-angle=metal', '--enable-gpu'] }, async (b) => {
await p.waitForFunction(
() => window.qaAdsb.mod.getAllPositions().length === 1,
);
assert.ok(await p.evaluate(() => window.qaAdsb.mod.selectAircraft('abc123')));
// The selection hook the selectable layers share, by the row's own id.
assert.ok(
await p.evaluate(() =>
window.qaAdsb.mod.selectById(window.qaAdsb.mod.getAllPositions()[0].id),
),
);
for (const kind of ['cesium', 'navara']) {
await p.evaluate(() => {
window.qaSelections = [];