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