From 538be1490aebef12d3e017c027023a5dbe118bde Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 5 Aug 2019 13:35:52 +0200 Subject: [PATCH] Add itemtype parameter --- projects/common/src/lib/services/item.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/common/src/lib/services/item.service.ts b/projects/common/src/lib/services/item.service.ts index dd1f8db..e14b2b4 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): Observable { + getFeatures(extent: number[], crs: string, searchText?: string, searchTags?:string,startDate?:Date,endDate?:Date,itemType?:string): Observable { var params = new HttpParams(); params = params.append("bbox", extent.join(",")); params = params.append("crs", crs); @@ -35,6 +35,7 @@ export class ItemService { if (searchTags) params = params.append("t", searchTags); if (startDate) params = params.append("sd", startDate.toISOString()); if (endDate) params = params.append("ed", endDate.toISOString()); + if (itemType) params = params.append("it", itemType); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/features/`, {params:params}); }