zcreativelabs / react-simple-maps

Beautiful React SVG maps with d3-geo and topojson using a declarative api.
https://www.react-simple-maps.io/
MIT License
3.12k stars 426 forks source link

TypeError: projections[projection] is not a function #181

Open lubomirKavetskiy opened 4 years ago

lubomirKavetskiy commented 4 years ago

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

ikarasz commented 4 years ago

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.