Serving Mapbox Vector Tiles with tilestrata
By following the documentation from tilestrata and tilestrata-vtile plugin we would like to have a Mapbox vector tile server for the GeoJSON sample.
The following steps apply to a macOS box.
Install mapnik
3:
brew install mapnik
Install npm dependencies:
yarn install
yarn run start
Test the tile server with curl:
curl localhost:8080/map/donors/0/0/0/tile.pbf > tile.pbf
Use parse-pbf.js
to see the contents of the tile.pbf
:
node parse-tile-pbf.js
The Mapbox Style JSON is available at /map
.