mapbox / mapbox/vtshaver

Add CLI that optimizes an mbtiles of vector tiles

Open
#37 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
44
Forks
7
PR merge metrics
No merged PRs in 30d

Description

A CLI tool that runs this module over an entire tileset in an mbtiles file would be a useful way of exploring optimizations and optimizing entire outputs from tile generators like tippecanoe.

The CLI could be:

```
./bin/optimize-mbtiles.js [style.json] [input.mbtiles] [output.mbtiles]
```

By default it would require writing a new mbtiles. But potentially it could accept an option to overwrite the existing mbtiles with optimized tiles (for the very experienced user).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing optimization module and any current CLI entry points, then inspect how the project reads and writes vector tiles. Use the proposed bin/optimize-mbtiles.js arguments—style.json, input.mbtiles, and output.mbtiles—as the interface to validate. Done means the CLI processes the input tileset and produces an optimized output mbtiles file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.