stevenliuyi / covid19

an interactive, animated COVID-19 coronavirus map to track the outbreak over time by country and by region for selected countries
MIT License
325 stars 97 forks source link

Issue not fetching the world map #12

Open arajpant opened 4 years ago

arajpant commented 4 years ago

the world map is not fetched. What module did I have missed? Please check the screenshot.

image

stevenliuyi commented 4 years ago

Did you get any error message when building the app? The map files should be in the folder public/maps.

arajpant commented 4 years ago

There are no map files inside the public/maps folder. Could you please push the maps folder? Please check the link: https://github.com/stevenliuyi/covid19/tree/master/public

Thanks

stevenliuyi commented 4 years ago

Hi, when you run yarn install, the map files will be downloaded from Internet and put in that folder.

arajpant commented 4 years ago

i have done that but still facing the same issue. When I inspect the browser, following issue arises:

image

Note: I have not modified any code from any files. Fixing the map issue will be really appreciated. Thanks

stevenliuyi commented 4 years ago

If you run yarn install successfully, the map files will be in your public/maps folder. If the files are not there, you could take a look at the your terminal outputs and see if there is any error during the building process and therefore map files are not downloaded and modified correctly.

arajpant commented 4 years ago

I have manually downloaded the map ( json file). It runs fine.. How can I show only one country (for instance Norway). Can it be done? let me know the process

stevenliuyi commented 4 years ago

Do you mean that when you click the country, say Norway, on the world map, it doesn't show the map of Norway? If that's the case, you only have the world map file in your public/maps folder, but not files for individual countries. You could just download all the maps manually, but it would be much easier if you figure out the issue when you run yarn install so that you could have all the map files generated automatically.

You may check Github Actions for this repo. The live site is build using Github Actions directly. You could see what does a successful building process look like.