@sansumbrella/mapbox-tilesets
v0.1.7
Published
scripts for working with the Mapbox tilesets API
Downloads
400
Readme
tilesets-js
A utility library for uploading and tiling data using the Mapbox Tilesets API.
Usage
const { TilesetsAPI } = require("@sansumbrella/mapbox-tilesets");
const tilesets = new TilesetsAPI(username, accessToken);
await tilesets.uploadRecipe(recipe, "custom-tileset");
await tilesets.publish(`${username}.custom-tileset`);
Warning: The data upload endpoint is not idempotent. Every time you upload data, it is appended to your existing source.