mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-12 06:12:18 +00:00
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:
1 parent
60a230b2ff
commit
dea10cac4f
3 files changed
+60
-9
No files matched your search
@@ -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 = [];
|
||||
|
||||
Reference in new issue
Block a user