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
2021-03-10 11:34:13 -05:00
charts/tileserver-gl adding k8s support with helm 2021-03-10 11:34:13 -05:00
docs fixed small errors 2020-10-23 15:05:36 +02:00
public Fix missing ScaleDenominator in wmts.tmpl 2020-09-28 10:33:21 +02:00
src Merge pull request #484 from candux/addKeyToSprites 2020-11-04 20:38:13 +01:00
test Fix tests 2020-01-08 15:18:51 +01:00
.dockerignore Use simplified entrypoint script 2020-12-04 16:19:30 +01:00
.gitignore adding k8s support with helm 2021-03-10 11:34:13 -05:00
.travis.yml Update travis to node 10 2019-12-30 16:54:36 +01:00
docker-entrypoint.sh Gracefully handle signals from Docker or terminal 2020-12-04 20:57:06 +01:00
Dockerfile Fix the docker image port to fix backward compatibility (#502) 2020-12-14 15:27:05 +01:00
Dockerfile_light Use chokidar instead of node-watch to poll the files (required for docker) 2020-01-15 09:26:59 +01:00
Dockerfile_test Update repo links, footnote, etc. (klokantech->maptiler) 2019-12-30 16:54:35 +01:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md 2018-01-23 12:17:14 +01:00
LICENSE.md Create LICENSE.md 2016-06-05 16:44:27 +02:00
package.json v3.1.1 2020-12-14 15:27:33 +01:00
publish.js add option to pass npm publish 2020-02-17 12:36:18 +09:00
PUBLISHING.md Add PUBLISHING.md 2016-08-24 14:20:16 +02:00
README_light.md Replace last references to the old repository/dockerhub 2020-03-11 13:57:45 +01:00
README.md adding k8s support with helm 2021-03-10 11:34:13 -05:00
run.sh Resolve https://github.com/maptiler/tileserver-gl/issues/386 2020-01-28 11:29:42 +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

Make sure you have Node.js version 10 installed (running node -v it should output something like v10.17.0).

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

npm install -g tileserver-gl

Now download vector tiles from OpenMapTiles.

curl -o zurich_switzerland.mbtiles https://[GET-YOUR-LINK]/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 --rm -it -v $(pwd):/data -p 8080:80 maptiler/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.

Using Kubernetes/helm

helm install tileserver-gl .\tileserver-gl\ -n default

you can now access the service (kubectl get svc) via port-forward or you can change the service type configuration to LoadBalancer or even activate the ingres/traefik routing.

Documentation

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