Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinmetcalf/8854867 to your computer and use it in GitHub Desktop.
Save calvinmetcalf/8854867 to your computer and use it in GitHub Desktop.
var scheme = new PyramidScheme({
minzoom: 0,
maxzoom: 2,
concurrency: 1,
metatile: 1
});
var tiles = [];
scheme.task = {
render: function(tile) {
tiles.push(tile.toString());
scheme.unique(tile);
},
finished: function() {
assert.deepEqual(tiles, [ '0/0/0', '1/0/0', '2/0/0', '2/1/0', '2/0/1',
'2/1/1', '1/1/0', '2/2/0', '2/3/0', '2/2/1', '2/3/1', '1/0/1', '2/0/2',
'2/1/2', '2/0/3', '2/1/3', '1/1/1', '2/2/2', '2/3/2', '2/2/3', '2/3/3' ]);
done();
}
};
scheme.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment