chore: update lake datasets, add new monitoring locations, and introduce docker-compose infrastructure
This commit is contained in:
@@ -57,7 +57,7 @@ const lakes = lakesConfig.map(lake => {
|
||||
const metrics = calculateLakeMetrics(currentLevel, volume, lake);
|
||||
|
||||
const cleanText = lake.text.replace(/^VD\s+/, '').replace(/^LG\s+/, '');
|
||||
const parts = cleanText.split('-').map(p => p.trim());
|
||||
const parts = cleanText.split(' - ').map(p => p.trim());
|
||||
let name = '';
|
||||
let river = '';
|
||||
if (parts.length > 1) {
|
||||
@@ -83,7 +83,10 @@ const lakes = lakesConfig.map(lake => {
|
||||
lat: lake.coords[0],
|
||||
lng: lake.coords[1],
|
||||
sparkline,
|
||||
type: lake.type || 'lake'
|
||||
type: lake.type || 'lake',
|
||||
country: lake.country || 'CZ',
|
||||
area: lake.area || 0,
|
||||
depth: lake.depth || 0
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user