fix: default style endpoint to undefined

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2024-01-22 01:45:08 -05:00
parent 57a0fca626
commit 6e5573d107

View file

@ -823,11 +823,11 @@ export const serve_rendered = {
}
app.get('/(:tileSize(256|512)/)?:id.json', (req, res, next) => {
const tileSize = parseInt(req.params.tileSize, 10) || 256;
const item = repo[req.params.id];
if (!item) {
return res.sendStatus(404);
}
const tileSize = parseInt(req.params.tileSize, 10) || undefined;
const info = clone(item.tileJSON);
info.tiles = getTileUrls(
req,