From 3ebc197fac8cbe14f6cc9e0dd7bf31086a79ec35 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 29 Jul 2020 08:43:17 +0200 Subject: [PATCH] Make extent nullable --- projects/common/src/fm/services/item.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index b673dee..85ef594 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -26,8 +26,8 @@ export class ItemService { 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); + if (extent) params =params.append("bbox", extent.join(",")); if (searchText) params = params.append("q", searchText); if (searchTags) params = params.append("t", searchTags); if (startDate) params = params.append("sd", startDate.toISOString());