You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside my country map json, I want to add TongaCountry with arcs,
I've added the country but - it is throwing the error.
Please add Tonga Country in the topo json file (which I've attached) or share the latest topo json file which contains all the countries. CountryMapJson.json
Inside my country map json, I want to add TongaCountry with arcs,
I've added the country but - it is throwing the error.
Please add Tonga Country in the topo json file (which I've attached) or share the latest topo json file which contains all the countries.
CountryMapJson.json
"react-simple-maps": "^3.0.0",
<Geographies geography={CountryMapJson}> {({ geographies }) => geographies.map(geo => { const currentData = data.find(item => item.country?.toLowerCase() === geo.properties.NAME.toLowerCase()) || []; let colorCode = currentData.mainKeyForValue ?? "#C8CBCB"; return ( <Geography key={geo.rsmKey} geography={geo} fill={colorCode} style={{ hover: { fill: "#3c86ad", outline: "none" }, pressed: { fill: "#608ea5", outline: "none" } }} onMouseEnter={() => { const { NAME} = geo.properties; this.setTooltip(NAME, currentData['value'], geo.rsmKey, currentData["shipments"], currentData["numberOfCompanies"]); }} onMouseLeave={() => { this.setState({ key: '' }) }} /> ); })} </Geographies>
The text was updated successfully, but these errors were encountered: