Fix Estilos Componentes

This commit is contained in:
2025-10-17 13:23:47 -03:00
parent 903c2b6a94
commit 45421f5c5f
11 changed files with 82 additions and 32 deletions

View File

@@ -49,7 +49,11 @@ export const MapaProvincial = ({ eleccionId, categoriaId, distritoId, nombreProv
if (municipioGeo) {
const municipioFeature = feature(geoData, municipioGeo);
const centroid = geoCentroid(municipioFeature);
if(nombreProvincia.toUpperCase() === 'CAPITAL FEDERAL'){
onCalculatedCenter(centroid as PointTuple, 180);
} else {
onCalculatedCenter(centroid as PointTuple, 40);
}
}
}
}, [nivel, nombreMunicipioSeleccionado, geoData, onCalculatedCenter]);