Do not add basename to tilejson and remove sensitive properties (see #69)

This commit is contained in:
Petr Sloup
2016-12-20 13:55:36 +01:00
parent 945e568b2b
commit 2d29a21596
3 changed files with 6 additions and 9 deletions

View File

@@ -41,8 +41,8 @@ module.exports = function(options, repo, params, id, styles) {
Object.assign(tileJSON, info);
tileJSON['tilejson'] = '2.0.0';
tileJSON['basename'] = id;
tileJSON['filesize'] = mbtilesFileStats['size'];
delete tileJSON['filesize'];
delete tileJSON['mtime'];
delete tileJSON['scheme'];
Object.assign(tileJSON, params.tilejson || {});