mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
refactor(space): separate satellite and mission layer components
This commit is contained in:
1 parent
61db945b21
commit
ce0568983a
44 files changed
+8767
-6095
No files matched your search
@@ -11,6 +11,8 @@ export function readLayerSource(file) {
|
||||
'militaryFlights.js',
|
||||
'aisLiveVessels.js',
|
||||
'firmsHeatmap.js',
|
||||
'satellites.js',
|
||||
'rocketLaunches.js',
|
||||
].includes(basename(path))
|
||||
)
|
||||
return readFileSync(path, 'utf8');
|
||||
@@ -22,7 +24,11 @@ export function readLayerSource(file) {
|
||||
? '../layers/military'
|
||||
: basename(path) === 'firmsHeatmap.js'
|
||||
? '../layers/firms'
|
||||
: '../layers/vessels',
|
||||
: basename(path) === 'satellites.js'
|
||||
? '../layers/satellites'
|
||||
: basename(path) === 'rocketLaunches.js'
|
||||
? '../layers/launches'
|
||||
: '../layers/vessels',
|
||||
);
|
||||
return readdirSync(directory)
|
||||
.filter((name) => name.endsWith('.js'))
|
||||
|
||||
Reference in new issue
Block a user