Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
Go to file
2016-09-30 09:51:20 +02:00
docs adding info for OSX setup 2016-08-29 12:31:33 +02:00
public Indicate clearly when running light version on index.html 2016-08-25 10:44:29 +02:00
src Ignore tiling scheme of the source for internal meta urls (#54) 2016-09-30 09:50:05 +02:00
test Update tests 2016-08-25 11:09:01 +02:00
.dockerignore Add tests to .dockerignore 2016-03-11 11:58:36 +01:00
.gitignore Initial documentation (close #39) 2016-08-23 00:32:09 +02:00
.travis.yml Update tests to use v0.8 dataset 2016-07-27 12:32:53 +08:00
Dockerfile Duplicate nodejs install 2016-07-20 15:18:58 -04:00
LICENSE.md Create LICENSE.md 2016-06-05 16:44:27 +02:00
package.json Update package version to 1.1.3 2016-09-30 09:51:20 +02:00
publish.js Update READMEs and descriptions 2016-08-25 12:52:32 +02:00
PUBLISHING.md Add PUBLISHING.md 2016-08-24 14:20:16 +02:00
README_light.md Update READMEs and descriptions 2016-08-25 12:52:32 +02:00
README.md Update README.md 2016-09-01 17:53:15 +02:00
run.sh Large refactoring of usage (only mbtiles, default styles, ...) (#27) 2016-08-20 13:31:11 +02:00

tileserver-gl

TileServer GL

Build Status Docker Hub

Vector and raster maps with GL styles. Server side rendering by Mapbox GL Native. Map tile server for Mapbox GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.

Get Started

Install tileserver-gl with server-side raster rendering of vector tiles with npm

npm install -g tileserver-gl

Now download vector tiles from OSM2VectorTiles.

curl -o zurich_switzerland.mbtiles https://osm2vectortiles-downloads.os.zhdk.cloud.switch.ch/v2.0/extracts/zurich_switzerland.mbtiles

Start tileserver-gl with the downloaded vector tiles.

tileserver-gl zurich_switzerland.mbtiles

Alternatively, you can use the tileserver-gl-light package instead, which is pure javascript (does not have any native dependencies) and can run anywhere, but does not contain rasterization on the server side made with MapBox GL Native.

Using Docker

An alternative to npm to start the packed software easier is to install Docker on your computer and then run in the directory with the downloaded MBTiles the command:

docker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl

This will download and start a ready to use container on your computer and the maps are going to be available in webbrowser on localhost:8080.

On laptop you can use Docker Kitematic and search "tileserver-gl" and run it, then drop in the 'data' folder the MBTiles.

Documentation

You can read full documentation of this project at http://tileserver.readthedocs.io/.