Skip to content

hsrm-lume/maptiler-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map-Tile Server for lume

Map-Tiles service for hsrm-lume/angular-map-frontend.

Build

The build process automatically imports styles and fonts into the docker image.

maptiler-config.json holds the base configuration for the server.

Styles for dark and light theme are located in the styles directory.

Fonts are located in the font-builder directory.
The Fonts have to be preprocessed with mapbox/node-fontnik but this step is automated through Dockerfile and helper script.

To start building run docker build .

The DockerPublish GitHub-Action can automatically build and push to the ghcr.io Registry.
The job automatically runs on the creation of a GitHub release.

Run

For the Tile Server to run, you first need to download the mbtiles data on your worker.
The file is obtainable at data.maptiler.com.

Once you have the mbtiles file ready, start the container with:

docker run \
    --rm -it \
    -v $(pwd)/<yourfile>.mbtiles:/data/mapdata.mbtiles \
    -p 8080:8080 \
    <docker-img-tag>

You may need to modify the pwd in the above command if the mbtiles file is not in your current working directory.