covid19 icon indicating copy to clipboard operation
covid19 copied to clipboard

Issue not fetching the world map

Open arajpant opened this issue 4 years ago • 7 comments

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

image

arajpant avatar Mar 24 '20 07:03 arajpant

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

stevenliuyi avatar Mar 24 '20 12:03 stevenliuyi

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

arajpant avatar Mar 24 '20 13:03 arajpant

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

stevenliuyi avatar Mar 24 '20 13:03 stevenliuyi

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

arajpant avatar Mar 25 '20 02:03 arajpant

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.

stevenliuyi avatar Mar 25 '20 02:03 stevenliuyi

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

arajpant avatar Mar 25 '20 03:03 arajpant

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.

stevenliuyi avatar Mar 25 '20 04:03 stevenliuyi