feat: add query param for static attribution text
Signed-off-by: Craig Kochis <cjkochis@gmail.com>
This commit is contained in:
parent
f3da24b9b7
commit
5f87e6d640
1 changed files with 6 additions and 0 deletions
|
|
@ -933,6 +933,12 @@ export const serve_rendered = {
|
||||||
if (!item) {
|
if (!item) {
|
||||||
return res.sendStatus(404);
|
return res.sendStatus(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// override attribution text
|
||||||
|
if (req.query.attributionText) {
|
||||||
|
item.staticAttributionText = req.query.attributionText;
|
||||||
|
}
|
||||||
|
|
||||||
const raw = req.params.raw;
|
const raw = req.params.raw;
|
||||||
const z = +req.params.z;
|
const z = +req.params.z;
|
||||||
let x = +req.params.x;
|
let x = +req.params.x;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue