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.07k stars 424 forks source link

Error when fetching the data of the countries (ERROR 404) #289

Closed kirak64 closed 2 years ago

kirak64 commented 2 years ago

I was developing a map to see the countries that visit my website when out of nowhere there was an error in the fetch to obtain the countries. I saw the examples from the official website https://www.react-simple-maps.io/ and the problem is the same, I think they removed it from the server. the 404 URL is this: GET https://raw.githubusercontent.com/zcreativelabs/react-simple-maps/master/topojson-maps/world-110m.json 404

the error causes the map not to be displayed

LOKANADH commented 2 years ago

Even am facing this issue

LOKANADH commented 2 years ago

@zimrick Could you please check this?

LOKANADH commented 2 years ago

@kirak64 Updating geoUrl to "https://raw.githubusercontent.com/deldersveld/topojson/master/world-countries.json" worked for me

pre-ska commented 2 years ago

@kirak64 Updating geoUrl to "https://raw.githubusercontent.com/deldersveld/topojson/master/world-countries.json" worked for me

when using this map, there is no properties object for countries in Geography component (in my case, I was using NAME) is there a way to get country name in that array?

zimrick commented 2 years ago

I apologise for this abrupt removal of the files. You should be able to reference the map files from v2 here: https://raw.githubusercontent.com/zcreativelabs/react-simple-maps/v2/topojson-maps/world-110m.json

zimrick commented 2 years ago

In case you are interested, new links have also been added to different map file sources, which host just map files: https://github.com/zcreativelabs/react-simple-maps#map-files.

pre-ska commented 2 years ago

@zimrick thank you very much for quick answer