Print bbox to console

This commit is contained in:
lsiden 2019-11-30 15:40:35 -05:00
parent f77ccd06af
commit 4a602ca8fc

View file

@ -387,7 +387,7 @@ module.exports = function(options, repo, params, id, publicUrl, dataResolver) {
var respondImage = function(z, lon, lat, bearing, pitch,
width, height, scale, format, res, next,
opt_overlay) {
opt_overlay, opt_bbox) {
if (Math.abs(lon) > 180 || Math.abs(lat) > 85.06 ||
lon != lon || lat != lat) {
return res.status(400).send('Invalid center');
@ -482,6 +482,10 @@ module.exports = function(options, repo, params, id, publicUrl, dataResolver) {
return res.status(404).send('Not found');
}
if (opt_bbox) {
console.log(opt_bbox)
}
res.set({
'Last-Modified': lastModified,
'Content-Type': 'image/' + format