Get templateHash for static tile request and errored named map instantiations
This commit is contained in:
@@ -96,7 +96,19 @@ function getCacheBuster ({ res }) {
|
||||
}
|
||||
|
||||
function getTemplateHash ({ res }) {
|
||||
return res.locals.templateHash;
|
||||
if (res.locals.templateHash) {
|
||||
return res.locals.templateHash;
|
||||
}
|
||||
|
||||
if (res.locals.mapConfigProvider && res.locals.mapConfigProvider.getTemplateHash) {
|
||||
let templateHash;
|
||||
|
||||
try {
|
||||
templateHash = res.locals.mapConfigProvider.getTemplateHash();
|
||||
} catch (e) {}
|
||||
|
||||
return templateHash;
|
||||
}
|
||||
}
|
||||
|
||||
function getStatTag ({ res }) {
|
||||
|
||||
Reference in New Issue
Block a user