Generating your own OpenMapTiles

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 21

  • @diemuino
    @diemuino Год назад

    Thank you! Super useful, clear and accurate video.

  • @ian-raynel3761
    @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
      @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
      @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
      @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
      @ian-raynel3761 6 лет назад

      Thanks Tobin, that was the firrst thing I did, and it still happened haha. Funny, but frustrating

  • @bartoszwasik1759
    @bartoszwasik1759 4 года назад

    Hey, thanks for video!
    How can I provide different map styling colours (like colours of roads and buildings?)

    • @TobinBradley
      @TobinBradley  4 года назад +1

      The Mapbox GL style specification is JSON, so any text editor will do. You could also try Maputnik:
      openmaptiles.org/docs/style/maputnik/

    • @soloiara
      @soloiara 3 года назад

      @@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
      @TobinBradley  3 года назад +1

      @@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
      @soloiara 3 года назад

      @@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.

  • @francis10203
    @francis10203 7 лет назад +1

    What operating system are you using?

    • @TobinBradley
      @TobinBradley  7 лет назад +1

      Manjaro Linux, KDE desktop.

    • @ian-raynel3761
      @ian-raynel3761 6 лет назад +1

      That was my problem, was using windows, started using linux

  • @ShaibalAhmed
    @ShaibalAhmed 6 лет назад

    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
      @TobinBradley  6 лет назад +2

      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
      @ukalpa8929 4 года назад

      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.

  • @ian-raynel3761
    @ian-raynel3761 7 лет назад

    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
      @TobinBradley  7 лет назад

      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