Share the aircraft 3D-model regime between flights and military

This commit is contained in:
Sameh Khamis committed 2026-11-03 20:55:09 -08:00
1 parent b027bde6ad
commit 816002e3b9
10 files changed
+992 -1773

No files matched your search

+5 -2
View File
@@ -45,9 +45,12 @@ export function readLayerSource(file) {
? '../layers/cctv'
: '../layers/vessels',
);
// The aircraft layers draw through one shared icon layer; it is their code too.
// The aircraft layers draw through shared icon and model layers; they are
// their code too.
const shared = ['flights.js', 'militaryFlights.js'].includes(basename(path))
? [join(dirname(path), 'aircraftIconLayer.js')]
? ['aircraftIconLayer.js', 'aircraftModelLayer.js'].map((name) =>
join(dirname(path), name),
)
: [];
return readdirSync(directory)
.filter((name) => name.endsWith('.js'))