covid19
covid19 copied to clipboard
Issue not fetching the world map
the world map is not fetched. What module did I have missed? Please check the screenshot.
Did you get any error message when building the app? The map files should be in the folder public/maps
.
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
Hi, when you run yarn install
, the map files will be downloaded from Internet and put in that folder.
i have done that but still facing the same issue. When I inspect the browser, following issue arises:
Note: I have not modified any code from any files. Fixing the map issue will be really appreciated. Thanks
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.
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
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.