Files
gods-eye-view/src/data/infrastructure.js
T
Adrian Sbardella 7298a265f3 fix(dams): align Paraguay source attribution and integration counts
Synchronize with upstream main 5d95e9ad. Retain the original Acaray and Yacyreta geometries, use the OpenStreetMap / OpenInfraMap source label, and document standalone and combined dam counts without including the independent NVE or IGN datasets.
2026-10-22 22:09:35 -03:00

46 lines
1.2 KiB
JavaScript

import { createLocalGeoJsonLayer } from './localGeojsonCore.js';
import { INFRASTRUCTURE_DATA_URLS } from '../sources/infrastructureData.js';
/**
* Create fresh datacenter and dam layers without starting or loading them.
* @param {object} services Caller-owned context, overlay and render operations.
* @returns {object[]} Datacenters then dams, with stable standalone identities.
*/
export function createInfrastructureLayers(services) {
const datacentersUrl = INFRASTRUCTURE_DATA_URLS['local-datacenters'];
const damsUrl = INFRASTRUCTURE_DATA_URLS['local-dams'];
const datacenters = createLocalGeoJsonLayer(
{
id: 'local-datacenters',
url: datacentersUrl,
name: 'Datacenters',
color: '#00ffff', // Cyan
icon: '▣',
source: 'Local',
osmDerived: true,
labels: true,
labelMax: 700,
labelGridPx: 138,
},
services,
);
const dams = createLocalGeoJsonLayer(
{
id: 'local-dams',
url: damsUrl,
name: 'Dams',
color: '#0088ff', // Blue
icon: '▰',
source: 'OpenStreetMap / OpenInfraMap',
osmDerived: true,
labels: true,
labelMax: 900,
labelGridPx: 132,
},
services,
);
return [datacenters, dams];
}