react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

TypeError: projections[projection] is not a function

Open lubomirKavetskiy opened this issue 5 years ago • 1 comments

I try to build Globe like here https://codesandbox.io/s/react-simple-maps-globe-hl2ny But I use the last version of "react-simple-maps": "2.0.0" instead of "0.12.1" like in the example code and receive this error: TypeError: projections[projection] is not a function

lubomirKavetskiy avatar Mar 28 '20 20:03 lubomirKavetskiy

Hi @lubomirKavetskiy, react-simple-maps 2.0.0 uses d3-geo projections these are the projections you can pick from like projection="geoMercator". In your case, it will be geoOrthographic.

ikarasz avatar Apr 11 '20 19:04 ikarasz