Be able to aggregate by a field

This commit is contained in:
Daniel García Aubert
2019-03-01 11:21:18 +01:00
parent 92e62069d4
commit 77d5d8ebd4
4 changed files with 181 additions and 53 deletions
+6 -1
View File
@@ -690,7 +690,12 @@ TestClient.prototype.getClusterFeatures = function (zoom, clusterId, layerId, pa
var next = this;
url = '/api/v1/map/' + layergroupId + '/' + layerId + '/' + zoom + '/cluster/' + clusterId;
let queryParams = '';
if (params.aggregation) {
queryParams = qs.stringify({ aggregation: JSON.stringify(params.aggregation) });
}
url = `/api/v1/map/${layergroupId}/${layerId}/${zoom}/cluster/${clusterId}?${queryParams}`;
assert.response(self.server,
{