@mapbox/tileset-thumb

0.0.1 • Public • Published

travis

Maintainer: @yhahn

tileset-thumb

Pipe a tileset's tilelive stream into tileset-thumb to generate a PNG thumbnail summarizing coverage of that tileset's tiles.

Example usage:

const Mbtiles = require('mbtiles');
const createThumb = require('tileset-thumb').createThumb;
const fs = require('fs');

new Mbtiles('./some.mbtiles', (err, source) => {
  if (err) throw err;
  // Create a ZXY stream from an mbtiles file
  source.createZXYStream()
    // Pipe the stream to tileset-thumb
    .pipe(createThumb({ zxy: true }))
    // Pipe the resulting PNG to a file
    .pipe(fs.createWriteStream('./some.thumb.png'));
});

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/tileset-thumb

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user