This project uses Github workflow to generate MVT (Mapbox Vector Tile), and serves them as static resource on Github Pages.
See the rendered tiles on https://typebrook.github.io/mapstew, tile schema is based on OpenMapTiles with some custom changes.
- Fork this repo.
- Enable Gitub Action in repo settings page:
https://github.com/<user>/<repo>/settings/actions
- Also enable Github Pages in repo settings page, pick
gh-pages
branch as source. - That's it!
-
Use Github workflow to fetch latest
osm.pbf
daily (Taiwan by default), and update it as Github release asset calledtaiwan-daily.osm.obf
. -
Use Github workflow to update
taiwan-daily.osm.pbf
release asset in step 1 (withosmctools
). And also upload it as release asset calledtaiwan-latest.osm.pbf
-
Use Github workflow to generate tiles hourly (with
taiwan-latest.osm.pbf
from step 2), and commit them intogh-pages
bran
With steps above, the static tile resource https://typebrook.github.io/mapstew/tiles/{z}/{x}/{y}.pbf
are always updated with OSM with minimal delay.
GOEFABRIK
andProtomaps
- Get daily osm.pbf.osmctools
- Update osm.pbf hourly. Here I use custom docker image (smaller size withdebian:stable-slim
to boost Github workflow)tilemaker
- Generate MVT directly fromosm.pbf
file.
- The runner of Github workflow has limited computing power, so generate tiles worldwide houly is impossible. But for area of Taiwan, it could be done in 10 minutes.