From dc5ad6fdaa038a989d14fdc912bb46bace848eab Mon Sep 17 00:00:00 2001 From: ruthvik129 Date: Tue, 24 Sep 2024 18:57:45 +0530 Subject: [PATCH] remove set style on click --- packages/opub-ui/src/components/MapChart/MapChart.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/opub-ui/src/components/MapChart/MapChart.tsx b/packages/opub-ui/src/components/MapChart/MapChart.tsx index 0e62ae96..217d2f9f 100644 --- a/packages/opub-ui/src/components/MapChart/MapChart.tsx +++ b/packages/opub-ui/src/components/MapChart/MapChart.tsx @@ -225,11 +225,6 @@ const Map = ({ function handleClick(e: { target: any }) { var layer = e.target; - layer.setStyle({ - fillColor: isCustomColor - ? customColor?.(Number(layer.feature.properties[mapProperty])) - : mapDataFn(Number(layer.feature.properties[mapProperty]), 'selected'), - }); if (zoomOnClick) { const map = mapRef.current;