more static respondImage

This commit is contained in:
acalcutt 2022-09-20 23:33:51 -04:00
parent 80d3699383
commit c1e9dc76ea

View file

@ -247,7 +247,7 @@ module.exports = {
} }
let pool; let pool;
if (opt_mode == 'tile') { if (opt_mode === 'tile') {
pool = item.map.renderers[scale]; pool = item.map.renderers[scale];
} else { } else {
pool = item.map.renderers_static[scale]; pool = item.map.renderers_static[scale];
@ -469,7 +469,7 @@ module.exports = {
const path = extractPathFromQuery(req.query, transformer); const path = extractPathFromQuery(req.query, transformer);
const overlay = renderOverlay(z, x, y, bearing, pitch, w, h, scale, path, req.query); const overlay = renderOverlay(z, x, y, bearing, pitch, w, h, scale, path, req.query);
return respondImage(item, z, x, y, bearing, pitch, w, h, scale, format, res, next, overlay); return respondImage(item, z, x, y, bearing, pitch, w, h, scale, format, res, next, overlay, "static");
}; };
const boundsPattern = const boundsPattern =
@ -542,7 +542,7 @@ module.exports = {
const overlay = renderOverlay(z, x, y, bearing, pitch, w, h, scale, path, req.query); const overlay = renderOverlay(z, x, y, bearing, pitch, w, h, scale, path, req.query);
return respondImage(item, z, x, y, bearing, pitch, w, h, scale, format, res, next, overlay); return respondImage(item, z, x, y, bearing, pitch, w, h, scale, format, res, next, overlay, "static");
}); });
} }