Fix serving the same style twice

This commit is contained in:
Petr Sloup
2016-06-29 20:28:56 +02:00
parent 4eea8a91b8
commit 6100013718
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ module.exports = function(options, repo, params, id) {
});
};
styleJSON = require(path.join(options.paths.styles, styleFile));
styleJSON = clone(require(path.join(options.paths.styles, styleFile)));
styleJSON.sprite = 'sprites://' + path.basename(styleFile, '.json');
styleJSON.glyphs = 'fonts://{fontstack}/{range}.pbf';