fix: default style endpoint to undefined
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
57a0fca626
commit
6e5573d107
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue