Add id to tilejson

This commit is contained in:
Frédéric Rodrigo 2020-04-03 09:43:16 +02:00
parent d5a079d8f4
commit 5dad07c589
2 changed files with 2 additions and 0 deletions

View file

@ -145,6 +145,7 @@ module.exports = {
Object.assign(tileJSON, info);
tileJSON['tilejson'] = '2.0.0';
tileJSON['id'] = id;
delete tileJSON['filesize'];
delete tileJSON['mtime'];
delete tileJSON['scheme'];

View file

@ -711,6 +711,7 @@ module.exports = {
const tileJSON = {
'tilejson': '2.0.0',
'name': styleJSON.name,
'id': id,
'attribution': '',
'minzoom': 0,
'maxzoom': 20,