From bdae073f2247bdaf9afda6eb0c38bf4159062ece Mon Sep 17 00:00:00 2001
From: florent <flavelle@neogeo.fr>
Date: Thu, 6 Jan 2022 17:03:26 +0100
Subject: [PATCH] dev

---
 src/assets/js/map-util.js | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/src/assets/js/map-util.js b/src/assets/js/map-util.js
index 41f503d0..b6bf2e9f 100644
--- a/src/assets/js/map-util.js
+++ b/src/assets/js/map-util.js
@@ -324,9 +324,15 @@ const mapUtil = {
             customFieldOption = properties[customField[0]];
           }
 
-          let defaultStyle;
-          let hiddenStyle;
+          const hiddenStyle = ({
+            radius: 0,
+            fillOpacity: 0.5,
+            weight: 0,
+            fill: false,
+            color: featureType.color,
+          });
 
+          let defaultStyle;
           if (
             featureType.colors_style.value.icons[customFieldOption] &&
             featureType.colors_style.value.icons[customFieldOption] !== 'circle'
@@ -347,10 +353,6 @@ const mapUtil = {
               icon: customMapIcon
             };
 
-            hiddenStyle = ({
-              icon: customMapIcon
-            });
-
           } else {
 
             defaultStyle = {
@@ -360,15 +362,7 @@ const mapUtil = {
               fill: true,
               color: color,
             };
-
-            hiddenStyle = ({
-              radius: 0,
-              fillOpacity: 0.5,
-              weight: 0,
-              fill: false,
-              color: featureType.color,
-            });
-
+            
           }
 
           // Filtre sur le feature type
-- 
GitLab