@mapbox/tilelive-cardboard

0.3.1 • Public • Published

tilelive-cardboard

build status

Implements the tilelive API for creating mapnik vector tiles from a cardboard datasource.

Initialization

var CardboardTiles = require('tilelive-cardboard');

var config = {
    table: 'geo',
    dataset: 'my-cardboard-dataset',
    bucket: 's3-bucket-for-large-geometries',
    prefix: 's3-prefix-for-large-geometries',
    region: 'region-for-cardboard-data'
};

new CardboardTiles(config, function(err, source) {
    source.getTile(9, 98, 207, function(err, tile) {
        console.log('queried cardboard and got a tile!');
    });
});

// You you can also specify these parameters as a URI:
var uri = 'cardboard://table/dataset/bucket/prefix/region';
new CardboardTiles(uri, function(err, src) { ... });

Assumptions

  • buffer-size = 8

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/tilelive-cardboard

Weekly Downloads

2

Version

0.3.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