mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
refactor(cctv): separate camera source and scene components
This commit is contained in:
1 parent
ca5f5fff93
commit
519bc6c362
32 files changed
+6873
-4835
No files matched your search
@@ -17,6 +17,7 @@ export function readLayerSource(file) {
|
||||
'militaryAwareness.js',
|
||||
'traffic.js',
|
||||
'bikeshare.js',
|
||||
'cctv.js',
|
||||
].includes(basename(path))
|
||||
)
|
||||
return readFileSync(path, 'utf8');
|
||||
@@ -40,7 +41,9 @@ export function readLayerSource(file) {
|
||||
? '../layers/traffic'
|
||||
: basename(path) === 'bikeshare.js'
|
||||
? '../layers/bikeshare'
|
||||
: '../layers/vessels',
|
||||
: basename(path) === 'cctv.js'
|
||||
? '../layers/cctv'
|
||||
: '../layers/vessels',
|
||||
);
|
||||
return readdirSync(directory)
|
||||
.filter((name) => name.endsWith('.js'))
|
||||
|
||||
Reference in new issue
Block a user