Add id to tilejson
This commit is contained in:
parent
d5a079d8f4
commit
5dad07c589
2 changed files with 2 additions and 0 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
|
|
@ -711,6 +711,7 @@ module.exports = {
|
|||
const tileJSON = {
|
||||
'tilejson': '2.0.0',
|
||||
'name': styleJSON.name,
|
||||
'id': id,
|
||||
'attribution': '',
|
||||
'minzoom': 0,
|
||||
'maxzoom': 20,
|
||||
|
|
|
|||
Loading…
Reference in a new issue