Append dataviews related columns to layers

This commit is contained in:
Raul Ochoa
2016-04-27 18:30:05 +02:00
parent b787ee1033
commit 755dfe6822
5 changed files with 139 additions and 13 deletions
+5 -3
View File
@@ -313,13 +313,15 @@ TestClient.prototype.getTile = function(z, x, y, params, callback) {
assert.response(server, request, expectedResponse, function(res, err) {
assert.ifError(err);
var image;
var obj;
if (isPng) {
image = mapnik.Image.fromBytes(new Buffer(res.body, 'binary'));
obj = mapnik.Image.fromBytes(new Buffer(res.body, 'binary'));
} else {
obj = JSON.parse(res.body);
}
next(null, res, image);
next(null, res, obj);
});
},
function finish(err, res, image) {