Thank you! Super useful, clear and accurate video.
@ian-raynel3761
6 жыл бұрын
Is there anything you did specifically to be able to make this work? I Downloaded Docker and Docker Compose, Cloned the Repo. And tried to run Quickstart.sh. Then...... Nothing, does not create the data folder. When I run quickstart through Command Prompt a second prompt open for a few split seconds and thats it. Is this suppose to be this complicated? Did you neeed to install OpenMaptiles-tools and python as well. Pls, this is getting very frustrating. Regardless, thanks for the vid :)
@TobinBradley
6 жыл бұрын
When you say command prompt, are you running this on Windows? Quickstart.sh is a bash script, so I don't think you'll have much luck there. I don't think WSL on Windows 10 supports docker either. I would look at this issue and then do what they did - run it under Ubuntu using VirtualBox or something similar. github.com/openmaptiles/openmaptiles/issues/156
@ShaibalAhmed
5 жыл бұрын
Thank you for this awesome video Tobin! Everything worked as it should. I might sound really stupid but I have to ask you two questions. 1. How do I view the finished product? Is there an index file somewhere in the openmaptiles folder and is it already pre-styled? Edit: I did a "make start-tileserver" and I could see the vector tiles on localhost:8080 ! :) 2. Where are the databases stored? Can I host it on my own server?
@TobinBradley
5 жыл бұрын
The data is stored in a SQLite file (MBTiles isn't a format per se, it's a SQLite database with a particular schema) called tiles.mbtiles in the data folder. To host it yourself as a SQLite file you'll need a server side piece to accept Z/X/Y requests and return a tile. There are lots of those - I have a very basic one in Node at github.com/tobinbradley/mbtiles-server, but if you aren't in to node, you can search for your preferred server side language + mbtiles and find something that will work.
@ukalpa8929
3 жыл бұрын
Hi@@TobinBradley, Thank you for your video firstly. The tile data I downloaded is the "pbf" format, can you please indicate how I convert it to png for the front-end or do you have any solution for the pbf file being used straight away? Thanks a lot.
@bartoszwasik1759
3 жыл бұрын
Hey, thanks for video! How can I provide different map styling colours (like colours of roads and buildings?)
@TobinBradley
3 жыл бұрын
The Mapbox GL style specification is JSON, so any text editor will do. You could also try Maputnik: openmaptiles.org/docs/style/maputnik/
@soloiara
2 жыл бұрын
@@TobinBradley Hello! I have a json file generated with Maputnik. Where do I need to substitute it so that these styles are taken into account when generating tiles? Didn't find anything like it in the documentation.
@TobinBradley
2 жыл бұрын
@@soloiara Tiles don't have any style information in them, they're just vectors - think of them like a shape file or a geojson file. The JSON is used by a mapping library like Maplibre GL JS to paint the vector tiles in whatever way you've specified in the JSON.
@soloiara
2 жыл бұрын
@@TobinBradley Maybe you know a way to generate raster tiles with custom styles? I tried it through Maperetive, but it cannot work with large files, like a map of Russia.
@ian-raynel3761
6 жыл бұрын
Is there any reason for docker-compose pull to hang and become stuck when pulling openstreetmap-tools section. It downloads to a certain point of completions then just stops. This effects ./quickstart.sh when running, because it gets stuck at that section and does does complete. No matter what I do this happens, and I have tried now for two days. Funny thing is, it worked fine a couple of months ago.
@TobinBradley
6 жыл бұрын
Did you try doing a git pull? Could be some project dependency changed and they deleted a no longer needed docker image.
@ian-raynel3761
6 жыл бұрын
How would I go about doing that within the quickstart.sh file, because as far as I know docker-compose openstreetmap-tools are used to compile the .mbtiles
@TobinBradley
6 жыл бұрын
git pull is run from the command line from the root folder of the project. It compares your local copy of the repo to master on github and will pull down any changes, including to quickstart.sh. Alternatively, you could try doing a git clone of the project to another repo and try building tiles from there.
@ian-raynel3761
6 жыл бұрын
Thanks Tobin, that was the firrst thing I did, and it still happened haha. Funny, but frustrating
@francis10203
6 жыл бұрын
What operating system are you using?
@TobinBradley
6 жыл бұрын
Manjaro Linux, KDE desktop.
@ian-raynel3761
6 жыл бұрын
That was my problem, was using windows, started using linux
Пікірлер: 21