(MODE-11365) Reverting unnecessary changes.
This commit is contained in:
parent
4401cad989
commit
38445cf0fe
3 changed files with 5 additions and 5 deletions
|
|
@ -173,7 +173,7 @@ Sprites
|
|||
|
||||
If your style requires any sprites, make sure the style JSON contains proper path in the ``sprite`` property.
|
||||
|
||||
It can be a local path (e.g. ``my-style/sprite``) or remove http(s) location (e.g. ``https://mycdn.com/my-style/sprite``). Several possible extension are added to this path, so the following files should be present:
|
||||
It can be a local path (e.g. ``my-style/sprite``) or remote http(s) location (e.g. ``https://mycdn.com/my-style/sprite``). Several possible extension are added to this path, so the following files should be present:
|
||||
|
||||
* ``sprite.json``
|
||||
* ``sprite.png``
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ module.exports = function(options, repo, params, id, styles) {
|
|||
isGzipped = false;
|
||||
}
|
||||
data = shrinkers[style](data, z, tileJSON.maxzoom);
|
||||
console.log(shrinkers[style].getStats());
|
||||
//console.log(shrinkers[style].getStats());
|
||||
}
|
||||
}
|
||||
if (options.dataDecoratorFunc) {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ module.exports = function(options, repo, params, id, dataResolver) {
|
|||
ratio: ratio,
|
||||
request: function(req, callback) {
|
||||
var protocol = req.url.split(':')[0];
|
||||
console.log('Handling request:', req);
|
||||
//console.log('Handling request:', req);
|
||||
if (protocol == 'sprites') {
|
||||
var dir = options.paths[protocol];
|
||||
var file = unescape(req.url).substring(protocol.length + 3);
|
||||
|
|
@ -177,7 +177,7 @@ module.exports = function(options, repo, params, id, dataResolver) {
|
|||
format = parts[5].split('.')[1];
|
||||
source.getTile(z, x, y, function(err, data, headers) {
|
||||
if (err) {
|
||||
console.log('MBTiles error, serving empty', err);
|
||||
//console.log('MBTiles error, serving empty', err);
|
||||
createEmptyResponse(sourceInfo.format, sourceInfo.color, callback);
|
||||
return;
|
||||
}
|
||||
|
|
@ -214,7 +214,7 @@ module.exports = function(options, repo, params, id, dataResolver) {
|
|||
var extension = path.extname(parts.pathname).toLowerCase();
|
||||
var format = extensionToFormat[extension] || '';
|
||||
if (err || res.statusCode < 200 || res.statusCode >= 300) {
|
||||
console.log('HTTP error', err || res.statusCode);
|
||||
//console.log('HTTP error', err || res.statusCode);
|
||||
createEmptyResponse(format, '', callback);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue