fix: add remove hex colors and multipliers and change the fillOpacity back to 0.4

This commit is contained in:
Leon Xu committed 2022-05-03 20:48:23 -07:00
1 parent 8df656b2be
commit 13f04a0d37
1 file changed
+4 -10
+4 -10
View File
@@ -5,21 +5,15 @@ import { Circle, Popup } from "react-leaflet";
const casesTypeColors = {
cases: {
hex: "#CC1034",
rgb: "rgb(204, 16, 52)",
half_op: "rgba(204, 16, 52, 0.5)",
multiplier: 800,
multiplier: 100,
},
recovered: {
hex: "#7dd71d",
rgb: "rgb(125, 215, 29)",
half_op: "rgba(125, 215, 29, 0.5)",
multiplier: 1200,
multiplier: 200,
},
deaths: {
hex: "#fb4443",
rgb: "rgb(251, 68, 67)",
half_op: "rgba(251, 68, 67, 0.5)",
multiplier: 2000,
multiplier: 300,
},
};
@@ -32,7 +26,7 @@ export const showDataOnMap = (data, casesType = "cases") =>
data.map((country) => (
<Circle
center={[country.countryInfo.lat, country.countryInfo.long]}
fillOpacity={0.1}
fillOpacity={0.4}
color={casesTypeColors[casesType].hex}
fillColor={casesTypeColors[casesType].hex}
radius={