refactor: separate traffic and bikeshare components

This commit is contained in:
Sameh Khamis committed 2026-09-13 14:10:38 -07:00
1 parent 3143d00c90
commit 903fe6ba37
45 files changed
+6159 -4363

No files matched your search

+7 -1
View File
@@ -15,6 +15,8 @@ export function readLayerSource(file) {
'rocketLaunches.js',
'militaryInstallations.js',
'militaryAwareness.js',
'traffic.js',
'bikeshare.js',
].includes(basename(path))
)
return readFileSync(path, 'utf8');
@@ -34,7 +36,11 @@ export function readLayerSource(file) {
? '../layers/installations'
: basename(path) === 'militaryAwareness.js'
? '../layers/awareness'
: '../layers/vessels',
: basename(path) === 'traffic.js'
? '../layers/traffic'
: basename(path) === 'bikeshare.js'
? '../layers/bikeshare'
: '../layers/vessels',
);
return readdirSync(directory)
.filter((name) => name.endsWith('.js'))