dataset-to-tileset

1.0.1 • Public • Published

dataset-to-tileset

Command line tool to convert a Mapbox Dataset into a Mapbox Tileset while applying a bunch of helper operations including:

  • Smooth lines using a bezier spline
  • Add point nodes to polygons for labels
  • Add point nodes to lines for labels
  • Add arrowhead points (where feature property is _arrow = start|end|both)

Install

npm install -g dataset-to-tileset

Usage

export MAPBOX_ACCESS_TOKEN=sk...
dataset-to-tileset DATASET_ID [TILESET_ID]

eg. dataset-to-tileset ckj1234567890 username.abcdefg

Your Mapbox access token must have scopes datasets:read and 'uploads:write'.

Readme

Keywords

none

Package Sidebar

Install

npm i dataset-to-tileset

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

26.9 kB

Total Files

4

Last publish

Collaborators

  • andrewharvey