Runs a tileserver using tileserver-gl as well as a static file server using http-server for styles, fonts, and sprites.
Vector tiles come from Geofabrik and sprites from Versatiles.
Get the latest vector tiles.
%> ./update-data
Run docker compose.
%> docker compose -f deploy/docker-compose.yml up --build
You can then use maplibre-gl.
new maplibregl.Map({
...,
style: 'http://localhost:8888/style.json',
});
- Serve fonts and sprites out of tileserver-gl and remove the static server
- Create glyphs for Inter so our font styles match the brand
- Add New Hampshire and Rhode Island
- It doesn't look like simply adding multiple states works as the tiles overlap
- Either use the entire NE (which is a 1.5GB file) or figure out how to combine multiple states