Skip to content

rtodea/tilestrata-example

Repository files navigation

tilestrata-example

Serving Mapbox Vector Tiles with tilestrata

Description

By following the documentation from tilestrata and tilestrata-vtile plugin we would like to have a Mapbox vector tile server for the GeoJSON sample.

Installation

The following steps apply to a macOS box.

Install mapnik 3:

brew install mapnik

Install npm dependencies:

yarn install

Starting

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.

About

Serving Mapbox Vector Tiles with tilestrata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published