Skip to content

A tileserver serving vector tiles and styles for maplibre-gl

Notifications You must be signed in to change notification settings

anthonyshull/mbta_tileserver

Repository files navigation

MBTA TILESERVER

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.

Running the server

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',
});

Roadmap

  • 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

About

A tileserver serving vector tiles and styles for maplibre-gl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published