This is a Docker config to run the OSM raster tile generator in a container. To run simply build the image and run like this:
docker build -t tilegen .
docker run --rm -v $(pwd):/data tilegen -- "12.26,51.849,14.699,52.994"
or simply from Docker Hub:
docker run --rm -v $(pwd):/data detunized/tilegen -- "12.26,51.849,14.699,52.994"
The last parameter is a bounding box in a CSV "west, south, east, north" format. It's easy to make here by selecting an area on the map on OpenMapTiles.
The tiles will be saved to the ./png
folder. If something goes wrong,
there's also a log from the TileServer GL.
There should one *.mbtiles
file available in the current directory. It's
gonna be used by the tile server as a source of verctor tiles.
- Expose generated tile viewer from the container (see this)
- Publish the container to Docker Hub (publishes automatically)
This repo is merely a repackaging of the existing awesome tools:
- TileServer GL that does all the dirty work of generating tiles
- tile-generation toolkit that scrapes the tiles from the the server
MIT, see LICENSE