update variable reference
This commit is contained in:
parent
18407dea65
commit
127a4465c9
1 changed files with 3 additions and 3 deletions
|
|
@ -65,9 +65,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 = normalizeSpritePath(styleJSON.sprite);
|
spritePath = normalizeSpritePath(styleJSON.sprite);
|
||||||
styleJSON.sprite = 'local://styles/' + id + '/sprite';
|
styleJSON.sprite = 'local://styles/' + id + '/sprite';
|
||||||
// if there are still sprites for this style, serve them according to the config setting
|
// if there are still sprites for this style, serve them according to the config setting
|
||||||
} else if (item.serveSprites && typeof item.serveSprites === 'object') {
|
} else if (params.serveSprites && typeof params.serveSprites === 'object') {
|
||||||
spritePath = normalizeSpritePath(item.serveSprites.file);
|
spritePath = normalizeSpritePath(params.serveSprites.file);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (styleJSON.glyphs && !httpTester.test(styleJSON.glyphs)) {
|
if (styleJSON.glyphs && !httpTester.test(styleJSON.glyphs)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue