Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue not fetching the world map #12

Open
arajpant opened this issue Mar 24, 2020 · 7 comments
Open

Issue not fetching the world map #12

arajpant opened this issue Mar 24, 2020 · 7 comments

Comments

@arajpant
Copy link

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

image

@stevenliuyi
Copy link
Owner

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

@arajpant
Copy link
Author

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
Copy link
Owner

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

@arajpant
Copy link
Author

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
Copy link
Owner

stevenliuyi commented Mar 25, 2020

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants