Buffersize customizable through named maps' placeholders

This commit is contained in:
Mario de Frutos
2017-04-25 19:27:31 +02:00
parent 0577fa5308
commit 7ea7a991aa
3 changed files with 40 additions and 27 deletions
+5 -5
View File
@@ -504,8 +504,8 @@ TestClient.prototype.getTile = function(z, x, y, params, callback) {
else if (isMvt) {
obj = new mapnik.VectorTile(z, x, y);
obj.setDataSync(new Buffer(res.body, 'binary'));
}
}
else {
obj = JSON.parse(res.body);
}
@@ -711,7 +711,7 @@ TestClient.prototype.getNamedTile = function(z, x, y, params, callback) {
}
if (!params.placeholders) {
params.placeholder = {};
params.placeholders = {};
}
var urlNamed = '/api/v1/map/named';
@@ -843,8 +843,8 @@ TestClient.prototype.getNamedTile = function(z, x, y, params, callback) {
else if (isMvt) {
obj = new mapnik.VectorTile(z, x, y);
obj.setDataSync(new Buffer(res.body, 'binary'));
}
}
else {
obj = JSON.parse(res.body);
}