fix: tilesize should not be added to data endpoint
This commit is contained in:
parent
c34c5786bd
commit
6e9a71f09f
1 changed files with 2 additions and 1 deletions
|
|
@ -356,11 +356,12 @@ function start(opts) {
|
||||||
|
|
||||||
const addTileJSONs = (arr, req, type) => {
|
const addTileJSONs = (arr, req, type) => {
|
||||||
for (const id of Object.keys(serving[type])) {
|
for (const id of Object.keys(serving[type])) {
|
||||||
const tileSize = 256;
|
|
||||||
const info = clone(serving[type][id].tileJSON);
|
const info = clone(serving[type][id].tileJSON);
|
||||||
let path = '';
|
let path = '';
|
||||||
|
let tileSize = undefined;
|
||||||
if (type === 'rendered') {
|
if (type === 'rendered') {
|
||||||
path = `styles/${id}`;
|
path = `styles/${id}`;
|
||||||
|
tileSize = 512;
|
||||||
} else {
|
} else {
|
||||||
path = `${type}/${id}`;
|
path = `${type}/${id}`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue