From 6c828f6c6d9bb3c618fbc21f02bf25f096d5b2e1 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Mon, 3 Feb 2020 09:28:24 +0100 Subject: [PATCH] AW-803 Add count childitems for widget. --- projects/common/src/fm/services/item.service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 36ccefb..d62b343 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -78,6 +78,12 @@ export class ItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params }).pipe(map(ia => ia.map(i => this.parseDates(i)))); } + getChildItemListCount(parentcode: string, itemType: string): Observable { + var params = new HttpParams(); + params = params.append("it", itemType); + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params }); + } + getChildItemListByExtent(parentcode: string, itemType: string, extent: number[], crs: string, dataFilter?: any, level: number = 1): Observable { var params = new HttpParams(); params = params.append("it", itemType);