minor formatting updates
This commit is contained in:
parent
a007218e2d
commit
788dba67f3
1 changed files with 4 additions and 4 deletions
|
|
@ -53,9 +53,9 @@ module.exports = function(options, repo, params, id, reportTiles, reportFont) {
|
||||||
if (styleJSON.sprite && !httpTester.test(styleJSON.sprite)) {
|
if (styleJSON.sprite && !httpTester.test(styleJSON.sprite)) {
|
||||||
spritePath = path.join(options.paths.sprites,
|
spritePath = path.join(options.paths.sprites,
|
||||||
styleJSON.sprite
|
styleJSON.sprite
|
||||||
.replace('{style}', path.basename(styleFile, '.json'))
|
.replace('{style}', path.basename(styleFile, '.json'))
|
||||||
.replace('{styleJsonFolder}', path.relative(options.paths.sprites, path.dirname(styleFile)))
|
.replace('{styleJsonFolder}', path.relative(options.paths.sprites, path.dirname(styleFile)))
|
||||||
);
|
);
|
||||||
styleJSON.sprite = 'local://styles/' + id + '/sprite';
|
styleJSON.sprite = 'local://styles/' + id + '/sprite';
|
||||||
}
|
}
|
||||||
if (styleJSON.glyphs && !httpTester.test(styleJSON.glyphs)) {
|
if (styleJSON.glyphs && !httpTester.test(styleJSON.glyphs)) {
|
||||||
|
|
@ -131,7 +131,7 @@ module.exports = function(options, repo, params, id, reportTiles, reportFont) {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/' + id + '/sprite:scale(@[23]x)?\.:format([\\w]+)',
|
app.get('/' + id + '/sprite:scale(@[23]x)?\.:format([\\w]+)',
|
||||||
function (req, res, next) {
|
function(req, res, next) {
|
||||||
if (!spritePath) {
|
if (!spritePath) {
|
||||||
return res.status(404).send('File not found');
|
return res.status(404).send('File not found');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue