fix: tilesize should not be added to data endpoint

This commit is contained in:
Andrew Calcutt 2024-02-02 09:06:19 -05:00
parent c34c5786bd
commit 6e9a71f09f

View file

@ -356,11 +356,12 @@ function start(opts) {
const addTileJSONs = (arr, req, type) => {
for (const id of Object.keys(serving[type])) {
const tileSize = 256;
const info = clone(serving[type][id].tileJSON);
let path = '';
let tileSize = undefined;
if (type === 'rendered') {
path = `styles/${id}`;
tileSize = 512;
} else {
path = `${type}/${id}`;
}