Skip to content

Commit

Permalink
deselection
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2323 committed Oct 24, 2024
1 parent 5dd3665 commit bff9c7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/departement/[departement].md
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ const labels = [
// Assuming statistics, map, availableYears, name, quantileProbs, and colorScales are already defined

// Create and add GeoJSON layers
let isFirstLayer = true;
// let isFirstLayer = true;
for (const { indicator, label, colorScale, unit } of labels) {
const geojsonLayer = createGeoJsonLayer(statistics, indicator, label, quantileProbs, colorScales[colorScale], unit);
overlays[label] = geojsonLayer;

// Add only the first layer to the map by default
if (isFirstLayer) {
geojsonLayer.addTo(map);
isFirstLayer = false;
}
// if (isFirstLayer) {
// geojsonLayer.addTo(map);
// isFirstLayer = false;
// }
}
overlays["Contours des îlots"] = ilotBoundariesLayer.addTo(map);

Expand Down

0 comments on commit bff9c7e

Please sign in to comment.