Skip to content

Commit

Permalink
remove set style on click
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthvik129 committed Sep 24, 2024
1 parent 9205900 commit dc5ad6f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/opub-ui/src/components/MapChart/MapChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc5ad6f

Please sign in to comment.