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.
Find a file
2019-06-24 15:26:08 +02:00
.circleci (MODE-11365) Set prod deployment to master only. 2019-06-24 14:09:55 +02:00
configuration fixed rail_station_label source layer and added filter to it 2019-06-24 13:32:39 +02:00
deployment (MODE-11365) Fixed deployment parameters for prod. 2019-06-24 12:33:24 +02:00
docs (MODE-11365) Reverting unnecessary changes. 2019-06-24 12:47:28 +02:00
public (MODE-11365) Testing deployment of tileserver v2.3.1. 2019-04-25 09:15:51 +02:00
src (MODE-11365) Minor fixes. 2019-06-24 12:55:59 +02:00
test (MODE-11365) Testing deployment of tileserver v2.3.1. 2019-04-25 09:15:51 +02:00
.dockerignore Slightly stricter .dockerignore 2017-01-13 11:03:12 +01:00
.gitignore (MODE-11365) Removed config.json from gitignore. 2019-04-25 09:30:23 +02:00
.travis.yml Add some packages to travis and Dockerfile 2017-06-23 21:34:59 +02:00
Dockerfile (MODE-11365) Testing deployment of tileserver v2.3.1. 2019-04-25 09:15:51 +02:00
Dockerfile_light (MODE-11365) Testing deployment of tileserver v2.3.1. 2019-04-25 09:15:51 +02:00
Dockerfile_test (master) Updated repo with latest master from klokantech/tileserver-gl. 2019-04-24 11:00:03 +02:00
ISSUE_TEMPLATE.md (MODE-11365) Testing deployment of tileserver v2.3.1. 2019-04-25 09:15:51 +02:00
LICENSE.md Create LICENSE.md 2016-06-05 16:44:27 +02:00
package.json (MODE-11365) Testing deployment of tileserver v2.3.1. 2019-04-25 09:15:51 +02:00
publish.js Remove node-pngquant-native dependency 2017-09-15 17:06:42 +02:00
PUBLISHING.md Add PUBLISHING.md 2016-08-24 14:20:16 +02:00
README.md removed the backup styles and edited README.md 2019-06-20 13:51:29 +02:00
README_light.md Update READMEs and descriptions 2016-08-25 12:52:32 +02:00
run.sh (MODE-11365) Set startup port to 8080 for tileserver. 2019-04-25 09:29: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

Make sure you have Node.js version 6 installed (running node -v it should output something like v6.11.3).

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://openmaptiles.os.zhdk.cloud.switch.ch/v3.3/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 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/.

Offline development to fix styles

Tool and instructions: https://openmaptiles.org/docs/style/maputnik/ Run the maputnik executable to start a server on localhost:8000, open your browser and visit the address.

To inspect and make temporary changes to our styles you can load them using the live tileJSON URLs either for dev or prod. To load the map data that we use make sure you use the live URL that points to the data OSM2Vector tileJSON.

Latest tilserver README: https://buildmedia.readthedocs.org/media/pdf/tileserver/latest/tileserver.pdf

Updating Styles/Sprites

Updated the point label groups, grouping by rank and zoom level.

Fixed some landuse colors of class pitch (Fx #15.65/55.698642/12.572399).

Railway lines added to each style.

Updated the "image-icon" reference in the styles from {maki}-11 to {class}-11. The name of each icon to be shown is the same as the class name.

NOTE:

When uploading a local JSON file to the the Maputnik editor, change the source URL, the sprite and glyphs to URLs. Fx: ["sprite": "mono"] to ["sprite": "https://maps.monomaps.com/styles/updated-mono/sprite"]