Tippecanoe
This is a trivial shell around Mapbox's Tippecanoe, a command-line tool for generating vector tiles from geometry files such as GeoJSON.
You must install Tippecanoe separately. It must be on the PATH.
Usage
const tippecanoe = ;; const tippecanoe = tippecanoeAsync;;
inputFile1
etc: names of input filesparameters
: an object consisting of camelCase keys passed to Tippecanoe as kebab-case. Each key should be in one of these formats:zg: true
: passed as-zg
maximumZoom: 'g'
: passed as--maximum-zoom=g
include: ['name', 'id']
: passed as--include=name --include=id
namedLayer: { file: 'towns20.geojson', name: 'towns' }
: passed as--named-layer='{"file":"towns20.geojson","name:"towns"}'
options
: an object containing options for this library itself. Currently supports:echo: true
, to print out the command line as it is called.
Example
;