Validate aggregation query param

This commit is contained in:
Daniel García Aubert
2017-12-12 19:23:21 +01:00
parent f390a10830
commit 6d46a21005
3 changed files with 61 additions and 10 deletions
+2 -2
View File
@@ -625,7 +625,7 @@ TestClient.prototype.getTile = function(z, x, y, params, callback) {
queryParams.api_key = self.apiKey;
}
if (typeof params.aggregation === 'boolean') {
if (params.aggregation !== undefined) {
queryParams.aggregation = params.aggregation;
}
@@ -801,7 +801,7 @@ TestClient.prototype.getLayergroup = function (params, callback) {
queryParams.api_key = self.apiKey;
}
if (typeof params.aggregation === 'boolean') {
if (params.aggregation !== undefined) {
queryParams.aggregation = params.aggregation;
}