osm2vectortiles/docs/start.md

1.5 KiB

layout title published
page Maps rendered from Vector Tiles true

Introduction

This tutorial describes how to get a raster tile map with OSM Vector Tiles as data source.

Kitematic

Preparation

  1. Download the extract you want to serve.
  2. Download the visual style.

Install Kitematic

  1. Download and install Kitematic.
  2. Start a new container by searching for klokantech/tileserver-mapnik and click create.

Search Container

Add MBTiles File and Style

Click on the volume /data and add the downloaded mbtiles file and style project.

Add resources to tileserver

Click on web preview and you should see the map.

Container running and serving tiles

Command Line

If you want to get started very quickly, just use the following commands.

wget https://osm2vectortiles-downloads.os.zhdk.cloud.switch.ch/v1.0/extracts/zurich.mbtiles
git clone https://github.com/mapbox/mapbox-studio-osm-bright.tm2.git
docker run -v $(pwd):/data -p 8080:80 klokantech/tileserver-mapnik

Note: The webserver is is now accessible on port 8080. To access it you need to figure out the ip address of the container. (docker-machine env default)

Container running and serving tiles