mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Share the aircraft 3D-model regime between flights and military
This commit is contained in:
1 parent
b027bde6ad
commit
816002e3b9
10 files changed
+992
-1773
No files matched your search
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user