From 0914e2b072b046d9c9317af61eaf653c7beb9dca Mon Sep 17 00:00:00 2001 From: Marine Heckler Date: Fri, 20 Oct 2023 19:39:34 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20la=20carte=20des=20?= =?UTF-8?q?collectivit=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/carte/CarteAvecFiltres.tsx | 18 +----------------- .../components/carte/CollectiviteFeature.tsx | 19 ++++++------------- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/packages/site/components/carte/CarteAvecFiltres.tsx b/packages/site/components/carte/CarteAvecFiltres.tsx index 4473362850..2216ec163c 100644 --- a/packages/site/components/carte/CarteAvecFiltres.tsx +++ b/packages/site/components/carte/CarteAvecFiltres.tsx @@ -41,29 +41,13 @@ const CarteAvecFiltres = () => { return filtre ? (
-
-
-
- Collectivités engagées labellisées sur au moins un - des 2 référentiels : Climat Air Énergie (CAE) et/ou Économie - Circulaire (ECi) -
-
-
-
-
- Collectivités engagées non labellisées signataires - d'un Contrat d'Objectif Territorial (COT) -
-
-

diff --git a/packages/site/components/carte/CollectiviteFeature.tsx b/packages/site/components/carte/CollectiviteFeature.tsx index 1309463a9f..3f29c8a005 100644 --- a/packages/site/components/carte/CollectiviteFeature.tsx +++ b/packages/site/components/carte/CollectiviteFeature.tsx @@ -20,19 +20,12 @@ type CollectiviteFeatureProps = { const CollectiviteFeature = ({collectivite}: CollectiviteFeatureProps) => { const router = useRouter(); const geojson = collectivite.geojson as unknown as GeoJsonObject; - const style: PathOptions = collectivite.labellisee - ? { - fillColor: '#4D75AC', - fillOpacity: 0.7, - color: '#4D75AC', - weight: 1.5, - } - : { - fillColor: '#9E9E9E', - fillOpacity: 0.7, - color: '#9E9E9E', - weight: 1.5, - }; + const style: PathOptions = { + fillColor: '#4D75AC', + fillOpacity: 0.7, + color: '#4D75AC', + weight: 1.5, + }; return (