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}); }