tileserver-gl 0,0,1 travis-ci docker npm

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.

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

Related Repositories

awesome-vector-tiles

awesome-vector-tiles

awesome implementations of the Mapbox Vector Tile specification ...

naturalearthtiles

naturalearthtiles

Prerendered Natural Earth Vector Tiles (MVT) and Raster Tiles ...

openstreetmap-mapboxgl

openstreetmap-mapboxgl

An OpenStreetMap style that uses the openstreetmap-carto schema and is compatibl ...

positron-gl-style

positron-gl-style

Positron GL style using OpenMapTiles ...

geo-and-javascript-awesomeness

geo-and-javascript-awesomeness

JS (JavaScript) libraries mainly for geo ...


Top Contributors

petrsloup klokan daliborjanak efi stirringhalo rastapasta

Dependencies

package version
@mapbox/mapbox-gl-native 3.5.4
@mapbox/mbtiles 0.9.0
@mapbox/sphericalmercator 1.0.5
@mapbox/vector-tile 1.3.0
advanced-pool 0.3.2
base64url 2.0.0
canvas 1.6.5
clone 2.1.1
color 1.0.3
cors 2.8.3
express 4.15.3
glyph-pbf-composite 0.0.2
handlebars 4.0.10
http-shutdown ^1.2.0
morgan 1.8.2
node-pngquant-native 1.0.4
nomnom 1.8.1
pbf 3.0.5
proj4 2.4.3
request 2.81.0
sharp 0.18.1
tileserver-gl-styles 1.1.1
dev should ^11.2.0
mocha ^3.2.0
supertest ^3.0.0

Releases

-   v1.1.4 zip tar
-   v1.1.3 zip tar
-   v1.1.2 zip tar
-   v1.1.1 zip tar
-   v1.1.0 zip tar
-   v1.0.0 zip tar
-   v0.9.1 zip tar
-   v0.9.0 zip tar
-   v0.8.3 zip tar
-   v0.8.2 zip tar
-   v0.8.1 zip tar
-   v0.8.0 zip tar
-   v0.7 zip tar
-   v0.6 zip tar
-   v0.5 zip tar
-   v0.4 zip tar
-   v0.0.3 zip tar
-   v0.0.2 zip tar
-   v0.0.1-pre zip tar