klokantech / tileserver-mapnik

Mapnik based tile server generating raster tiles from tilelive-js sources (MapBox Studio project + custom vector tiles for example). It supports also static maps API.
https://hub.docker.com/r/klokantech/tileserver-mapnik/
Other
63 stars 18 forks source link

tileserver-mapnik

Mapnik-based tile server generating raster tiles from tilelive-js sources (MapBox Studio project + custom vector tiles for example). It supports also static maps API.

How to use

Docker

The easiest way to run tileserver-mapnik is using the precompiled docker container (https://hub.docker.com/r/klokantech/tileserver-mapnik/).

Detailed instructions how to use the tileserver-mapnik with docker: http://osm2vectortiles.org/docs/serve-raster-tiles-docker

Without docker

Follow the commands in Dockerfile to install the necessary packages, download common fonts and prepare the environment.

Usage: node bin/tessera.js [options]

Options:

Example configuration file

{
  "/style1": {
    "source": "tmstyle://./style1.tm2"
  },
  "/style2": {
    "source": "tmstyle:///home/user/style2.tm2"
  },
  "/vector": {
    "source": "mbtiles:///home/user/data.mbtiles"
  }
}

Note: For tm2 styles, you need to make sure the content of style's project.yml (its source property) points to a valid mbtiles file (e.g. source: "mbtiles://./data.mbtiles").

Available URLs