Skip to content

Commit

Permalink
Merge branch 'master' into 6011-event-class-TH
Browse files Browse the repository at this point in the history
  • Loading branch information
VIKTORVAV99 committed Feb 26, 2024
2 parents 36e0586 + ab16435 commit ce74a98
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 7 deletions.
40 changes: 40 additions & 0 deletions web/public/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,46 @@
"fully-estimated": "Estimado"
},
"estimation-card": {
"link": "Más información sobre nuestros modelos de estimación",
"estimated_time_slicer_average": {
"title": "Los datos son estimados",
"pill": "Retraso",
"body": "Los datos de esta hora aún no se han transmitido. Los valores mostrados son estimaciones y se reemplazarán por mediciones cuando estén disponibles."
},
"estimated_mode_breakdown": {
"title": "Datos parcialmente estimados",
"pill": "Datos incompletos",
"body": "Los datos de generación de electricidad correspondientes a zona son incompletos.Los valores faltantes se han calculado mediante un modelo de estimación."
},
"estimated_reconstruct_breakdown": {
"title": "Los datos son siempre estimados",
"pill": "Datos imprecisos",
"body": "Los datos publicados correspondientes a esta zona sólo proporcionan la generación total. Las fuentes renovables se estiman utilizando datos meteorológicos en tiempo real, mientras que las fuentes fósiles se deducen basándose en los datos históricos de cada fuente de producción."
},
"estimated_generic_method": {
"title": "Los datos son estimados",
"pill": "Datos imprecisos",
"body": "Los datos publicados para esta zona no están disponibles o están incompletos. Los datos mostrados en el mapa han sido estimados mediante nuestros modelos de estimación, pudiendo diferir de los valores reales."
},
"estimated_construct_breakdown": {
"title": "Los datos son siempre estimados",
"pill": "Tiempo real no disponible",
"body": "Los datos para esta zona no están disponibles en tiempo real y sólo proporcionan la generación total. Tanto los valores horarios como el desglose por fuente de generación se estiman a partir de datos históricos."
},
"estimated_construct_zero_breakdown": {
"title": "Los datos son siempre estimados",
"pill": "Tiempo real no disponible",
"body": "Los datos para esta zona no están disponibles en tiempo real y sólo proporcionan la generación total. Tanto los valores horarios como el desglose por fuente de generación se estiman a partir de datos históricos."
},
"threshold_filtered": {
"title": "Datos no disponibles",
"pill": "Interrupción",
"body": "El proveedor de datos para esta zona ha sufrido una interrupción prolongada de su servicio. Estamos revisando el problema y la zona estará disponible de nuevo en cuanto el proveedor restablezca el servicio."
},
"outage": {
"title": "Incidencia detectada",
"pill": "No disponible"
},
"aggregated": {
"title": "Datos agregados",
"body": "Los datos mostrados son el resultado de la agregación de valores horarios."
Expand Down
15 changes: 8 additions & 7 deletions web/src/features/map/map-utils/generateTopos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ const generateTopos = (
const stateBordersTopography = stateBordersTopo as unknown as StateBordersTopo;

for (const k of Object.keys(worldTopography.objects)) {
if (!worldTopography.objects[k].arcs) {
const topoObject = worldTopography.objects[k];
if (!topoObject.arcs) {
continue;
}

// Exclude if spatial aggregate is on and the feature is not highest granularity
// I.e excludes SE if spatialAggregate is off.
if (
spatialAggregate === SpatialAggregate.ZONE &&
!worldTopography.objects[k].properties.isHighestGranularity
!topoObject.properties.isHighestGranularity
) {
continue;
}
Expand All @@ -82,16 +83,16 @@ const generateTopos = (
// I.e excludes SE-SE4 if spatialAggregate is on.
if (
spatialAggregate === SpatialAggregate.COUNTRY &&
!worldTopography.objects[k].properties.isAggregatedView
!topoObject.properties.isAggregatedView
) {
continue;
}

const topoObject = merge(worldTopography, [worldTopography.objects[k]]);
const mp = multiPolygon(topoObject.coordinates, {
zoneId: worldTopography.objects[k].properties.zoneName,
const mergedTopoObject = merge(worldTopography, [topoObject]);
const mp = multiPolygon(mergedTopoObject.coordinates, {
zoneId: topoObject.properties.zoneName,
color: theme.nonClickableFill,
...worldTopography.objects[k].properties,
...topoObject.properties,
});

worldGeometries.features.push(mp);
Expand Down

0 comments on commit ce74a98

Please sign in to comment.