From c3a2383b2e746d95317366799872af3749fd51f8 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Fri, 9 Aug 2019 21:32:42 +0200 Subject: [PATCH] AW-432 added parentcode, datafilter and level tot getfeatures --- projects/common/src/lib/services/item.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/common/src/lib/services/item.service.ts b/projects/common/src/lib/services/item.service.ts index e14b2b4..2b42895 100644 --- a/projects/common/src/lib/services/item.service.ts +++ b/projects/common/src/lib/services/item.service.ts @@ -27,7 +27,7 @@ export class ItemService { return this.httpClient.get<{ [id: string]: IItemType }>(`${this.ApiEndpoint()}/api/v1/itemtypes/`); } - getFeatures(extent: number[], crs: string, searchText?: string, searchTags?:string,startDate?:Date,endDate?:Date,itemType?:string): Observable { + getFeatures(extent: number[], crs: string, searchText?: string, searchTags?:string,startDate?:Date,endDate?:Date,itemType?:string,parentCode?:string,dataFilter?:string,level?:number): Observable { var params = new HttpParams(); params = params.append("bbox", extent.join(",")); params = params.append("crs", crs); @@ -36,6 +36,9 @@ export class ItemService { if (startDate) params = params.append("sd", startDate.toISOString()); if (endDate) params = params.append("ed", endDate.toISOString()); if (itemType) params = params.append("it", itemType); + if (parentCode) params = params.append("pc", parentCode); + if (dataFilter) params = params.append("df", dataFilter); + if (level) params = params.append("lvl", dataFilter); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/features/`, {params:params}); }