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

Make a command to install the tile database #13

Open
yanganto opened this issue Dec 11, 2018 · 4 comments
Open

Make a command to install the tile database #13

yanganto opened this issue Dec 11, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@yanganto
Copy link
Contributor

yanganto commented Dec 11, 2018

When I set up all servers and go to http://127.0.0.1:8889, the browser say that /api/tile/metadata.json is missing. It returns 404 with "error" in the body.

I trace the code and find this error, DatabaseError(__Unknown, "file is not a database"), at line 171in source/api/tile/src/main.rs

How can I fix this issue?
Thanks.

@Hywan
Copy link
Member

Hywan commented Dec 11, 2018

Did you install the mbtiles database?

oh sorry it's commented, https://github.com/atlasr-org/atlasr/blob/master/justfile#L104. I need to release that correctly!

@Hywan Hywan self-assigned this Dec 11, 2018
@Hywan Hywan changed the title metadata.json is missing Make a command to install the tile database Dec 11, 2018
@Hywan Hywan added the enhancement New feature or request label Dec 11, 2018
@yanganto
Copy link
Contributor Author

I try to download the mbtiles with following command.
https://openmaptiles.com/download/WyJjOWUzNGM1NS04MDQxLTQ4MTMtYmUzMy0yNmFjMGUyN2I5MWIiLCItMSIsODcxM10.DsGknA.wk4qsZRjBSL8gQrp22h2CRpCyi4/osm-2017-07-03-v3.6.1-europe_switzerland.mbtiles?usage=open-source' > database/europe_switzerland.mbtiles.
But the download link is expired.

I may know how to download it, register and download from https://openmaptiles.com/downloads/tileset/osm/europe/switzerland/.

@yanganto
Copy link
Contributor Author

I can correctly set up this map viewer, thanks for your help.

@yanganto
Copy link
Contributor Author

It may be a good way to check the .mbtiles file, and prompt to help the user to download it.
And I am happy to write the check in just file.

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

No branches or pull requests

2 participants