This repository contains the convenience scripts to build styles for use with
tileserver-gl
.
Make sure you have also cloned the submodules: git submodules update --init
- Node 6.x (The tools involved only provide binaries for LTS versions of Node)
- yarn
Install the various tools by running yarn install
.
You can build everything by running ./build.sh
. The results will be output to ./target
.
You can run this from a Docker Container to save you the trouble of installing the dependencies.
docker-compose up --build
You might want to update the following keys in the styles .json
files to match your server configuration.
{
// ...
"sources": {
"openmaptiles": {
"url": "https://free.tilehosting.com/data/v3.json?key={key}",
"type": "vector"
}
},
"sprite": "https://openmaptiles.github.io/fiord-color-gl-style/sprite",
"glyphs": "https://free.tilehosting.com/fonts/{fontstack}/{range}.pbf?key={key}",
// ...
}
For example, you can follow how iOneMySgMap
does it.