1.1.0 • Published 7 years ago

tile-generator v1.1.0

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

Generate a stream of XYZ tiles from a bounding box.

install

npm install tile-generator

usage

var tileGenerator = require('tile-generator');

var tiles = [];
tileGenerator(12, [0, 30, 5, 35])
  .on('data', function (tile) {
    tiles.push(tile);
  })
  .on('end', function () {
    console.log(JSON.stringify(tiles);
  });

tile-generator can also generate a stream of tiles for the whole world ([-180, -85, 180, 85]):

var tileGenerator = require('tile-generator');

tileGenerator(12)
  .on('data', function (tile) {
    console.log(tile);
  });

cli

tile-generator --minzoom 0 --maxzoom 10 --bbox -180,-85,180,85
1.1.0

7 years ago

1.0.1

10 years ago

1.0.0

10 years ago