Do not add style
parameter when not needed (close #134)
This commit is contained in:
parent
0673c8990a
commit
7b952ee5c0
2 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ var clone = require('clone'),
|
|||
var tileshrinkGl;
|
||||
try {
|
||||
tileshrinkGl = require('tileshrink-gl');
|
||||
global.addStyleParam = true;
|
||||
} catch (e) {}
|
||||
|
||||
var utils = require('./utils');
|
||||
|
|
|
@ -68,7 +68,7 @@ module.exports = function(options, repo, params, id, reportTiles, reportFont) {
|
|||
return url;
|
||||
}
|
||||
var queryParams = [];
|
||||
if (!opt_nostyle) {
|
||||
if (!opt_nostyle && global.addStyleParam) {
|
||||
queryParams.push('style=' + id);
|
||||
}
|
||||
if (!opt_nokey && req.query.key) {
|
||||
|
|
Loading…
Reference in a new issue