AW-803 Add count childitems for widget.
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

pull/1/head
Peter Bastiani 2020-02-03 09:28:24 +01:00
parent 62234b3f9d
commit 6c828f6c6d
1 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,12 @@ export class ItemService {
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params }).pipe(map(ia => ia.map(i => this.parseDates(i))));
}
getChildItemListCount(parentcode: string, itemType: string): Observable<Number> {
var params = new HttpParams();
params = params.append("it", itemType);
return this.httpClient.get<Number>(`${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<IItem[]> {
var params = new HttpParams();
params = params.append("it", itemType);