We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, Its still appear the issue with zoom in projection="geoAlbersUsa". return "Cannot read properties of null (reading '0')"
Example :
<ComposableMap projection="geoAlbersUsa" projectionConfig={{ scale: scaleChart, }} data-tip="" > {({ geographies }) => geographies.map((geo) => { const centroid = geoCentroid(geo); const cur = statesText.find((s) => s.val === geo.id); return ( <Geography key={geo.rsmKey} stroke="#FFF" geography={geo} fill="#605D5C" onClick={() => setCenter(centroid)} /> )} ...................
The text was updated successfully, but these errors were encountered:
Looks like it's this old bug, #275
Sorry, something went wrong.
No branches or pull requests
Hi, Its still appear the issue with zoom in projection="geoAlbersUsa".
return "Cannot read properties of null (reading '0')"
Example :
<ComposableMap
projection="geoAlbersUsa"
projectionConfig={{
scale: scaleChart,
}}
data-tip=""
>
{({ geographies }) =>
geographies.map((geo) => {
const centroid = geoCentroid(geo);
const cur = statesText.find((s) => s.val === geo.id);
return (
<Geography
key={geo.rsmKey}
stroke="#FFF"
geography={geo}
fill="#605D5C"
onClick={() => setCenter(centroid)}
/>
)} ...................
The text was updated successfully, but these errors were encountered: