Skip to content

Commit

Permalink
all maps for France
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Jun 26, 2024
1 parent 08a65de commit de87050
Showing 1 changed file with 88 additions and 89 deletions.
177 changes: 88 additions & 89 deletions client/src/pages/atlas/components/atlas-map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,101 +89,100 @@ export default function AtlasMap() {
}
});

// France case
if (geoId === "PAYS_100") {
return (
<div className="atlas-map fr-mb-5w">
<Row gutters>
<Col>
<div style={{ width: "100%", height: "100%" }}>
switch (selectedTab) {
case "general":
// France case
if (geoId === "PAYS_100") {
return (
<div className="atlas-map fr-mb-5w">
<Row gutters>
<Col>
<div style={{ width: "100%", height: "100%" }}>
<MapWithPolygonAndBubbles
currentYear={currentYear}
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
</Col>
</Row>
<Row>
<Col>
<div className="drom-list">
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R01"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R02"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R03"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R04"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R06"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
</div>
</Col>
</Row>

<Row className="fr-mt-5w">
<Col>
<SubList />
</Col>
</Row>
</div>
);
} else {
return (
<Row gutters>
<Col md={8}>
<MapWithPolygonAndBubbles
currentYear={currentYear}
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
</Col>
</Row>
<Row>
<Col>
<div className="drom-list">
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R01"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R02"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R03"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R04"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
<div className="drom-item">
<MapWithPolygonAndBubbles
currentYear={currentYear}
idToFocus="R06"
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</div>
</div>
</Col>
</Row>

<Row className="fr-mt-5w">
<Col>
<SubList />
</Col>
</Row>
</div>
);
}

switch (selectedTab) {
case "general":
return (
<Row gutters>
<Col md={8}>
<MapWithPolygonAndBubbles
currentYear={currentYear}
isLoading={isLoadingHistoric}
mapbubbleData={mapbubbleData}
polygonsData={polygonsData}
/>
</Col>
<Col md={4}>
<SubList />
</Col>
</Row>
);

</Col>
<Col md={4}>
<SubList />
</Col>
</Row>
);
}
case "effectifs-par-filiere":
return (
<Row gutters>
Expand Down

0 comments on commit de87050

Please sign in to comment.