Skip to content

mapbox/tilelive-cardboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Renders vector tiles from a cardboard dataset

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •