When running docker image, no special installation is needed – the docker will automatically download the image if not present.
docker run --rm -it -v $(pwd):/data -p 8080:80 maptiler/tileserver-gl.
Additional options (see Usage) can be passed to the TileServer GL by appending them to the end of this command. You can, for example, do the following:
docker run ... maptiler/tileserver-gl --mbtiles my-tiles.mbtiles– explicitly specify which mbtiles to use (if you have more in the folder)
docker run ... maptiler/tileserver-gl --verbose– to see the default config created automatically
npm install -g tileserver-gl.
There are some native dependencies that you need to make sure are installed if you plan to run the TileServer GL natively without docker. The precise package names you need to install may differ on various platforms.
- These are required on Debian 9:
tileserver-gl-light on npm¶
Alternatively, you can use
Make sure you have Node v10 (nvm install 10) and run:
npm install node .