Open ezequielhernancasas opened 11 months ago
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=""
<ZoomableGroup center={center} zoom={5} {({ geographies }) => geographies.map((geo) => { const centroid = geoCentroid(geo); const cur = statesText.find((s) => s.val === geo.id); return ( setCenter(centroid)} /> )} ...................
<ZoomableGroup center={center} zoom={5}
Looks like it's this old bug, https://github.com/zcreativelabs/react-simple-maps/issues/275
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=""